diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..130ca2e --- /dev/null +++ b/.github/workflows/build.yml @@ -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