Skip to content

Commit 55c082a

Browse files
Update docker-build-and-push.yml
1 parent f4723c4 commit 55c082a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/docker-build-and-push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
uses: docker/setup-buildx-action@v1
3333

3434
- name: Log in to Azure Container Registry
35+
if: ${{ inputs.push == true && (github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix') }}
3536
uses: azure/docker-login@v2
3637
with:
3738
login-server: ${{ secrets.ACR_LOGIN_SERVER }}

0 commit comments

Comments
 (0)