ci: call buildah bud directly
All checks were successful
Build Image / build-and-push-image (push) Successful in 1m28s
All checks were successful
Build Image / build-and-push-image (push) Successful in 1m28s
This commit is contained in:
parent
ed52e16a57
commit
23fffeda75
1 changed files with 11 additions and 10 deletions
|
@ -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 --storage-driver=vfs push --authfile $PWD/auth.json git.kempkens.io/daniel/weewx:latest
|
||||
rm -f $PWD/auth.json
|
||||
|
|
Reference in a new issue