Archived
1
0
Fork 0

ci: call buildah bud directly
All checks were successful
Build Image / build-and-push-image (push) Successful in 1m28s

This commit is contained in:
Daniel Kempkens 2023-12-09 21:58:12 +01:00
parent ed52e16a57
commit 23fffeda75
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -9,17 +9,18 @@ jobs:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install Buildah - name: Install Buildah
run: apt-get -y update && apt-get -y install buildah run: apt-get -y update && apt-get -y install buildah
- name: Buildah Action - name: Build Container
uses: https://github.com/redhat-actions/buildah-build@v2 run: |
with: export BUILDAH_ISOLATION=chroot
image: weewx buildah --storage-driver=vfs bud -t git.kempkens.io/daniel/weewx:latest -f ./Dockerfile .
tags: master
containerfiles: | - name: Publish Container
./Dockerfile run: |
extra-args: | echo "{\"auths\": {\"git.kempkens.io\": {\"auth\": \"${{ secrets.PACKAGES_AUTH_STR }}\"}}}" > $PWD/auth.json
--storage-driver=vfs buildah --storage-driver=vfs push --authfile $PWD/auth.json git.kempkens.io/daniel/weewx:latest
rm -f $PWD/auth.json