From 777ae24e4ee3dd5fa2e452e4b454098c22efd36d Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 2 May 2026 11:16:42 -0300 Subject: [PATCH 1/4] fix buildah error --- .forgejo/workflows/os.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/os.yml b/.forgejo/workflows/os.yml index 9d6a648..a48d374 100644 --- a/.forgejo/workflows/os.yml +++ b/.forgejo/workflows/os.yml @@ -28,6 +28,16 @@ jobs: steps: + - name: Configure Buildah storage + run: | + mkdir -p ~/.config/containers + cat > ~/.config/containers/storage.conf <> $FORGEJO_OUTPUT From 7dfbeb41cb90555e159b3e30a6af7d128b617fa3 Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 2 May 2026 11:22:17 -0300 Subject: [PATCH 2/4] --storage-driver=vfs --- .forgejo/workflows/os.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/os.yml b/.forgejo/workflows/os.yml index a48d374..ccdf0c1 100644 --- a/.forgejo/workflows/os.yml +++ b/.forgejo/workflows/os.yml @@ -17,6 +17,7 @@ on: env: REGISTRY: forge.pc-rytteren.dk IMAGE_NAME: ${{ github.repository }} + STORAGE_DRIVER: vfs jobs: build: @@ -60,13 +61,13 @@ jobs: - name: Log into Forgejo Container Registry if: github.event_name != 'pull_request' 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 id: build-image run: | # 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 }}" \ -t raw-img . @@ -79,8 +80,8 @@ jobs: run: | for tag in $(echo "${{ steps.meta.outputs.tags }}"); do echo "Tagging and pushing: $tag" - buildah tag raw-img "$tag" - buildah push "$tag" + buildah --storage-driver=vfs tag raw-img "$tag" + buildah --storage-driver=vfs push "$tag" done - name: Install cosign From 4b53105631b88c9362c6deaa08c7e5ee6dca4afe Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 2 May 2026 11:24:50 -0300 Subject: [PATCH 3/4] switch to podman instead of buildah --- .forgejo/workflows/os.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/os.yml b/.forgejo/workflows/os.yml index ccdf0c1..8aa8427 100644 --- a/.forgejo/workflows/os.yml +++ b/.forgejo/workflows/os.yml @@ -61,13 +61,13 @@ jobs: - name: Log into Forgejo Container Registry if: github.event_name != 'pull_request' run: | - buildah --storage-driver=vfs login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }} + podman login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }} - name: Build image with Buildah id: build-image run: | # Vi bygger med 'raw-img' lokalt - buildah --storage-driver=vfs bud \ + podman build \ --label "org.opencontainers.image.source=https://forge.pc-rytteren.dk/${{ github.repository }}" \ -t raw-img . @@ -80,8 +80,8 @@ jobs: run: | for tag in $(echo "${{ steps.meta.outputs.tags }}"); do echo "Tagging and pushing: $tag" - buildah --storage-driver=vfs tag raw-img "$tag" - buildah --storage-driver=vfs push "$tag" + podman tag raw-img "$tag" + podman push "$tag" done - name: Install cosign From c365d3438be489e2cac9598a9dc41c27fdb92a83 Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 2 May 2026 11:27:36 -0300 Subject: [PATCH 4/4] PODMAN_USERNS: disabled --- .forgejo/workflows/os.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/os.yml b/.forgejo/workflows/os.yml index 8aa8427..801134a 100644 --- a/.forgejo/workflows/os.yml +++ b/.forgejo/workflows/os.yml @@ -18,6 +18,7 @@ env: REGISTRY: forge.pc-rytteren.dk IMAGE_NAME: ${{ github.repository }} STORAGE_DRIVER: vfs + PODMAN_USERNS: disabled jobs: build: