ffs
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m29s

This commit is contained in:
Christoph Haas 2026-02-05 22:56:23 +01:00
parent 61755e7b66
commit 22abf580d8

View file

@ -23,22 +23,43 @@ jobs:
- name: Install Podman - name: Install Podman
run: | run: |
apt-get update && apt-get install -y podman apt-get update && apt-get install -y podman buildah
- name: Podman info - name: Podman info
run: 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: | # run: |
# echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \ # # Buildah needs a 'docker://' prefix for remote registries
# -u "${{ secrets.REGISTRY_USER }}" \ # # It will use the credentials from your previous 'podman login'
# --password-stdin \ # # OR you can login directly with buildah:
# ${{ secrets.REGISTRY_URL }} # buildah push \
# # --storage-driver vfs \
# --creds "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}" \
# "$CONTAINER_IMAGE" \
# "docker://${{ secrets.REGISTRY_IMAGE }}:latest"
# - name: Build Docker image # - name: Build Docker image
# run: | # run: |
# docker build -t "$CONTAINER_IMAGE" . # podman build -t "$CONTAINER_IMAGE" .
# docker tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest" # podman tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest"
# #
# - name: Push Docker image # - name: Push Docker image
# run: | # run: |