--storage-driver=vfs
Some checks failed
os / build (push) Has been cancelled

This commit is contained in:
Anders da Silva Rytter Hansen 2026-05-02 11:22:17 -03:00
commit 7dfbeb41cb

View file

@ -17,6 +17,7 @@ on:
env: env:
REGISTRY: forge.pc-rytteren.dk REGISTRY: forge.pc-rytteren.dk
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
STORAGE_DRIVER: vfs
jobs: jobs:
build: build:
@ -60,13 +61,13 @@ jobs:
- name: Log into Forgejo Container Registry - name: Log into Forgejo Container Registry
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
run: | run: |
buildah login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }} buildah --storage-driver=vfs login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }}
- name: Build image with Buildah - name: Build image with Buildah
id: build-image id: build-image
run: | run: |
# Vi bygger med 'raw-img' lokalt # Vi bygger med 'raw-img' lokalt
buildah bud \ buildah --storage-driver=vfs bud \
--label "org.opencontainers.image.source=https://forge.pc-rytteren.dk/${{ github.repository }}" \ --label "org.opencontainers.image.source=https://forge.pc-rytteren.dk/${{ github.repository }}" \
-t raw-img . -t raw-img .
@ -79,8 +80,8 @@ jobs:
run: | run: |
for tag in $(echo "${{ steps.meta.outputs.tags }}"); do for tag in $(echo "${{ steps.meta.outputs.tags }}"); do
echo "Tagging and pushing: $tag" echo "Tagging and pushing: $tag"
buildah tag raw-img "$tag" buildah --storage-driver=vfs tag raw-img "$tag"
buildah push "$tag" buildah --storage-driver=vfs push "$tag"
done done
- name: Install cosign - name: Install cosign