mirror of
https://github.com/storytold/voder-proxy.git
synced 2026-10-18 07:33:13 +00:00
23 lines
653 B
YAML
23 lines
653 B
YAML
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 }}
|