🐳 Adds action to build Docker image to GHCR

Re: #156
This commit is contained in:
Alicia Sykes 2021-08-14 22:23:17 +01:00 committed by GitHub
parent c378f07212
commit 74075f3ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
# Builds a Docker image from with latest tag when master branch is updated
# The publishes it to GitHub container registry as a package
name: Build and Publish Docker Image to GHCR
on:
workflow_dispatch:
push:
branches: ['release']
branches: ['master']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
@ -25,5 +27,5 @@ jobs:
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: false
push: true
tags: latest