Push on master or release (#60)

This commit is contained in:
Jesse Bannon 2022-06-01 22:37:39 -07:00 committed by GitHub
parent 3c3f9140f7
commit 835c276da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,9 +53,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push image
- name: Push image on master or release
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
if [[ ${{ github.ref }} =~ ^refs\/heads\/master|^refs\/tags\/v.* ]]; then
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase