This commit is contained in:
parent
61755e7b66
commit
22abf580d8
1 changed files with 30 additions and 9 deletions
|
|
@ -23,22 +23,43 @@ jobs:
|
|||
|
||||
- name: Install Podman
|
||||
run: |
|
||||
apt-get update && apt-get install -y podman
|
||||
apt-get update && apt-get install -y podman buildah
|
||||
|
||||
- name: Podman info
|
||||
run: podman info
|
||||
|
||||
# - name: Log in to registry
|
||||
- name: Build with Buildah
|
||||
run: |
|
||||
# 'bud' stands for Build-Using-Docker-file
|
||||
buildah bud \
|
||||
--storage-driver vfs \
|
||||
-t "$CONTAINER_IMAGE" .
|
||||
|
||||
# Tagging is just as simple
|
||||
buildah tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
|
||||
- name: Log in to registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | podman login \
|
||||
-u "${{ secrets.REGISTRY_USER }}" \
|
||||
--password-stdin \
|
||||
${{ secrets.REGISTRY_URL }}
|
||||
|
||||
# - name: Push with Buildah
|
||||
# run: |
|
||||
# echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
|
||||
# -u "${{ secrets.REGISTRY_USER }}" \
|
||||
# --password-stdin \
|
||||
# ${{ secrets.REGISTRY_URL }}
|
||||
#
|
||||
# # Buildah needs a 'docker://' prefix for remote registries
|
||||
# # It will use the credentials from your previous 'podman login'
|
||||
# # OR you can login directly with buildah:
|
||||
# buildah push \
|
||||
# --storage-driver vfs \
|
||||
# --creds "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}" \
|
||||
# "$CONTAINER_IMAGE" \
|
||||
# "docker://${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
|
||||
# - name: Build Docker image
|
||||
# run: |
|
||||
# docker build -t "$CONTAINER_IMAGE" .
|
||||
# docker tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
# podman build -t "$CONTAINER_IMAGE" .
|
||||
# podman tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
#
|
||||
# - name: Push Docker image
|
||||
# run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue