From 144006e19ab272e597c5a7e5d83ebad710b84ca5 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..d768859 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-docker:latest -f ./Dockerfile . + + - name: Publish Container + run: | + echo "{\"auths\": {\"git.kempkens.io\": {\"auth\": \"${{ secrets.PACKAGES_AUTH_STR }}\"}}}" > $PWD/auth.json + buildah --storage-driver=vfs push --authfile $PWD/auth.json git.kempkens.io/daniel/weewx-docker:latest + rm -f $PWD/auth.json