Add github workflow and dockerfile

This commit is contained in:
Brandon Thomas
2020-06-29 00:30:28 -04:00
parent d4853707c7
commit de5a5b0783
6 changed files with 97 additions and 17 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Publish Docker image to GitHub Package Registry
on: push
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' # Only on master
steps:
- name: Copy Repo Files
uses: actions/checkout@master
#This Action Emits 2 Variables, IMAGE_SHA_NAME and IMAGE_URL
#which you can reference in subsequent steps
- name: Publish Docker Image to GPR
uses: machine-learning-apps/gpr-docker-publish@master
id: docker
with:
IMAGE_NAME: 'tts-service-proxy'
DOCKERFILE_PATH: 'Dockerfile'
BUILD_CONTEXT: '.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}