This commit is contained in:
gunnar
2026-06-05 18:43:44 +02:00
parent 7648f88e94
commit 2031488202
+5 -3
View File
@@ -18,7 +18,7 @@ concurrency:
jobs: jobs:
build_push: build_push:
name: Build and push image name: Build and push image
runs-on: ubuntu-24.04 # Läuft jetzt auf Ubuntu (bringt Node.js für Actions nativ mit!) runs-on: ubuntu-24.04
permissions: permissions:
contents: read contents: read
@@ -29,7 +29,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# Wir installieren Podman und jq direkt im Ubuntu-Runner. Das dauert nur ~10 Sekunden.
- name: Install Podman & Tools - name: Install Podman & Tools
run: | run: |
sudo apt-get update sudo apt-get update
@@ -73,10 +72,13 @@ jobs:
- name: Build Image - name: Build Image
run: | run: |
# Labels zeilenweise mit dem --label Flag versehen und in einer Variable puffern
BUILDAH_LABELS=$(echo "${{ steps.metadata.outputs.labels }}" | sed 's/^/--label /')
podman build \ podman build \
-f ./Containerfile \ -f ./Containerfile \
-t "localhost/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \ -t "localhost/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \
$(echo "${{ steps.metadata.outputs.labels }}" | sed 's/^/--label /') \ $BUILDAH_LABELS \
. .
- name: Rechunk with chunkah - name: Rechunk with chunkah