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:
1 parent
fe5891b4f5
commit
47d25b88ef
1 file changed
+5
-5
@@ -19,15 +19,15 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: job-v2
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
for image in $IMAGES; do
|
for image in $IMAGES; do
|
||||||
pull=never; [[ $image == base ]] && pull=newer
|
pull=never; [[ $image == base ]] && pull=newer
|
||||||
buildah build --pull="$pull" \
|
podman build --pull="$pull" \
|
||||||
--build-arg TAG="$TAG" \
|
--build-arg TAG="$TAG" \
|
||||||
-t "$REGISTRY/job79/$image:$TAG" "containers/$image"
|
-t "$REGISTRY/job79/$image:$TAG" "containers/$image"
|
||||||
done
|
done
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
run: |
|
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
|
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
|
done
|
||||||
Reference in new issue
Block a user