Skip to content

Commit 8b5e0cb

Browse files
committed
fix: modify az_acr_push image builds
1 parent 05e6058 commit 8b5e0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: echo "GH_REF_NAME=$(echo ${{ github.ref_name }} | sed 's|/|-|g')" >> $GITHUB_OUTPUT
4040

4141
- name: Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ steps.branch_name.outputs.GH_REF_NAME }}
42-
if: ${{ github.ref != github.repository.default_branch }}
42+
if: ${{ github.ref_name != github.repository.default_branch }}
4343
uses: docker/build-push-action@v5
4444
with:
4545
push: true
@@ -52,7 +52,7 @@ jobs:
5252
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
5353
5454
- name: Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-gpu
55-
if: ${{ github.ref == github.repository.default_branch && hashFiles('gpu.Dockerflie') != '' }}
55+
if: ${{ hashFiles('gpu.Dockerflie') != '' }}
5656
uses: docker/build-push-action@v5
5757
with:
5858
push: true

0 commit comments

Comments
 (0)