Create automated build workflow

This commit is contained in:
Luke Tainton 2021-10-14 13:02:40 +01:00 committed by GitHub
parent 0cfcebdd23
commit e738e49e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Build Docker Image
on:
push:
branches: master
jobs:
build:
name: Push to GHCR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login
run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u dchidell --password-stdin
- name: Build
run: docker build . --file Dockerfile --tag ghcr.io/dchidell/dnsmasq-web:latest
- name: Push
run: |
docker push ghcr.io/dchidell/dnsmasq-web:latest