This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker image to GitHub Package Registry | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Copy Repo Files | |
uses: actions/checkout@main | |
#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: 'BaseBot' | |
TAG: 'latest' | |
DOCKERFILE_PATH: './Dockerfile' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |