Skip to content

Commit a29667f

Browse files
committed
fix: config branch name for az_acr_delete
1 parent f721606 commit a29667f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/az_acr_delete.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,16 @@ jobs:
2424
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2525
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
2626
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
27-
28-
# - name: Log into registry
29-
# uses: docker/login-action@v3
30-
# with:
31-
# registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
32-
# username: "${{ env.ACR_LOGIN_USERNAME }}"
33-
# password: "${{ env.ACR_LOGIN_PASSWORD }}"
3427

28+
- name: Configure branch name
29+
id: branch_name
30+
run: echo "GH_REF_NAME=$(echo ${{ inputs.image_tag }} | sed 's|/|-|g')" >> $GITHUB_OUTPUT
31+
3532
- name: Delete Test Container Image
3633
uses: azure/cli@v2
3734
with:
3835
inlineScript: |
3936
az acr repository delete \
4037
--name ${{ env.AZURE_CONTAINER_REGISTRY }} \
41-
--image ${{ github.event.repository.name }}:${{ inputs.image_tag }} \
38+
--image ${{ github.event.repository.name }}:${{ steps.branch_name.outputs.GH_REF_NAME }} \
4239
--yes

0 commit comments

Comments
 (0)