ci: build on runneros with podman #3
@@ -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
|
||||
Reference in new issue
Block a user