Push on master or release

This commit is contained in:
jbannon 2022-06-02 05:33:46 +00:00
parent 3c3f9140f7
commit ee80f87a86

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