ci: build on runneros with podman
Build containers / build (pull_request) Successful in 4m24s

The linux label of runneros runs jobs in its job image, which has podman
and Node.js, with container storage on a volume. podman build and push
take the same options as buildah's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-23 18:59:12 +00:00
1 parent fe5891b4f5
commit 47d25b88ef
1 file changed
+5 -5
+5 -5
View File
@@ -19,15 +19,15 @@ env:
jobs:
build:
runs-on: job-v2
runs-on: linux
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Build
run: |
for image in $IMAGES; do
pull=never; [[ $image == base ]] && pull=newer
buildah build --pull="$pull" \
podman build --pull="$pull" \
--build-arg TAG="$TAG" \
-t "$REGISTRY/job79/$image:$TAG" "containers/$image"
done
@@ -38,7 +38,7 @@ jobs:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
buildah login -u "$REGISTRY_USERNAME" --password-stdin "$REGISTRY" <<<"$REGISTRY_TOKEN"
podman login -u "$REGISTRY_USERNAME" --password-stdin "$REGISTRY" <<<"$REGISTRY_TOKEN"
for image in $IMAGES; do
buildah push --compression-format=zstd:chunked --compression-level=12 "$REGISTRY/job79/$image:$TAG"
podman push --compression-format=zstd:chunked --compression-level=12 "$REGISTRY/job79/$image:$TAG"
done