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:
build_push:
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:
contents: read
@@ -29,7 +29,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
# Wir installieren Podman und jq direkt im Ubuntu-Runner. Das dauert nur ~10 Sekunden.
- name: Install Podman & Tools
run: |
sudo apt-get update
@@ -73,10 +72,13 @@ jobs:
- name: Build Image
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 \
-f ./Containerfile \
-t "localhost/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" \
$(echo "${{ steps.metadata.outputs.labels }}" | sed 's/^/--label /') \
$BUILDAH_LABELS \
.
- name: Rechunk with chunkah