From b4b8805d78e50afd441a148cc1b7994c537abd8c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 9 Dec 2023 21:58:12 +0100 Subject: [PATCH] ci: call buildah bud directly --- .forgejo/workflows/build-image.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index c02dd9b..ea0e923 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -9,17 +9,18 @@ jobs: runs-on: ubuntu-latest-amd64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Buildah run: apt-get -y update && apt-get -y install buildah - - name: Buildah Action - uses: https://github.com/redhat-actions/buildah-build@v2 - with: - image: weewx - tags: master - containerfiles: | - ./Dockerfile - extra-args: | - --storage-driver=vfs + - name: Build Container + run: | + export BUILDAH_ISOLATION=chroot + buildah --storage-driver=vfs bud -t git.kempkens.io/daniel/weewx:latest -f ./Dockerfile . + + - name: Publish Container + run: | + echo "{\"auths\": {\"git.kempkens.io\": {\"auth\": \"${{ secrets.PACKAGES_AUTH_STR }}\"}}}" > $PWD/auth.json + buildah push --authfile $PWD/auth.json git.kempkens.io/daniel/weewx:latest + rm -f $PWD/auth.json