Archived
1
0
Fork 0
This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
weewx-docker/.forgejo/workflows/build-image.yml
Daniel Kempkens 144006e19a
All checks were successful
Build Image / build-and-push-image (push) Successful in 1m28s
ci: call buildah bud directly
2023-12-10 00:43:06 +01:00

26 lines
764 B
YAML

name: Build Image
on:
push:
branches: ['master']
jobs:
build-and-push-image:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4
- name: Install Buildah
run: apt-get -y update && apt-get -y install buildah
- 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