mirror of
https://github.com/storytold/voder-proxy.git
synced 2026-10-19 07:43:12 +00:00
Add github workflow and dockerfile
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user