make sure that branch tags are only present if its not main.

This commit is contained in:
Jason Kulatunga 2023-07-08 09:50:36 -07:00
parent 25ae2c669c
commit 7ae0546cf0
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ jobs:
# if this is a main branch build, just tag it with the flavor (eg. main and sandbox)
type=raw,value=${{ matrix.flavor }},enable=${{ github.ref_name == 'main' }}
# if this is a (non main) branch build, tag it with the flavor and branch name (eg. main-branch and sandbox-branch)
type=ref,event=branch,prefix=${{ matrix.flavor }}-,enable=${{ matrix.flavor != 'main' }}
type=ref,event=branch,prefix=${{ matrix.flavor }}-,enable=${{ github.ref_name != 'main' }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action