ci: build on runneros with podman #3

Open
Job79 wants to merge 1 commits from runneros into main
pull from: runneros
+5 -5
View File
@@ -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