Commit 55de5fb 1 parent be76d0a commit 55de5fb Copy full SHA for 55de5fb
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,21 @@ jobs:
33
33
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
34
34
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
35
35
36
+ - name : Delete All Images in ACR
37
+ run : |
38
+ # Delete all images in the 'incstats' repository
39
+ az acr repository show-tags --name sbuincstatsnorwayeastecr --repository incstats --query "[*]" -o tsv | \
40
+ while read -r image; do
41
+ echo "Deleting image: incstats:$image"
42
+ az acr repository delete --name sbuincstatsnorwayeastecr --image incstats:$image --yes
43
+ done
44
+
36
45
- name : Build and Push to ACR
37
46
uses : docker/build-push-action@v2
38
47
with :
39
48
push : true
40
49
tags : ${{ secrets.AZURE_URL }}/incstats:${{ github.sha }}
41
50
file : Dockerfile
42
- build-args : |
43
- DATABASE_URL=your_database_url
44
51
45
52
- name : Redeploy Azure Container App
46
53
run : |
You can’t perform that action at this time.
0 commit comments