File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 98
98
-h ${{ github.head_ref }} \
99
99
-r ${{ env.AZURE_CONTAINER_REGISTRY }} \
100
100
-t "${{ inputs.test_cmd }}"
101
+
102
+ az-acr-delete :
103
+ name : " ACR: Delete Test Image"
104
+ runs-on : ubuntu-latest
105
+ needs : [k8-test]
106
+ environment : dev
107
+ env :
108
+ AZURE_CONTAINER_REGISTRY : ${{ vars.AZURE_CONTAINER_REGISTRY }}
109
+ ACR_LOGIN_USERNAME : ${{ secrets.ACR_LOGIN_USERNAME }}
110
+ ACR_LOGIN_PASSWORD : ${{ secrets.ACR_LOGIN_PASSWORD }}
111
+ steps :
112
+ - name : Azure Cloud Login
113
+ uses : Azure/login@v2
114
+ with :
115
+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
116
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
117
+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
118
+
119
+ - name : Delete Test Container Image
120
+ uses : azure/cli@v2
121
+ with :
122
+ inlineScript : |
123
+ az acr repository delete \
124
+ --name ${{ env.AZURE_CONTAINER_REGISTRY }} \
125
+ --image ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:test-${{ github.head_ref }}
You can’t perform that action at this time.
0 commit comments