Daniel Kempkens
4215d6e7de
Some checks failed
Build Image / build-and-push-image (push) Failing after 21s
26 lines
729 B
YAML
26 lines
729 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 -f -t git.kempkens.io/daniel/weewx:latest ./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
|