File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,16 @@ jobs:
24
24
client-id : ${{ secrets.AZURE_CLIENT_ID }}
25
25
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
26
26
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 }}"
34
27
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
+
35
32
- name : Delete Test Container Image
36
33
uses : azure/cli@v2
37
34
with :
38
35
inlineScript : |
39
36
az acr repository delete \
40
37
--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 }} \
42
39
--yes
You can’t perform that action at this time.
0 commit comments