Skip to content

Commit

Permalink
use correct acr bin path, cleanup ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 31, 2023
1 parent 4ced066 commit 2ff2e68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/clean-cache-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Add GitHub IP to StorageAccount
run: az acr network-rule add --name radixdevapp --ip-address ${{ steps.github_public_ip.outputs.ipv4 }}
run: az acr network-rule add --name radixdevapp --ip-address ${{ steps.github_public_ip.outputs.ipv4 }} --query provisioningState


- name: Create ACR Token
run: echo "token=$(az acr login --name=radixdevapp --expose-token | jq -r '.accessToken')" >> $GITHUB_OUTPUT
Expand All @@ -44,5 +45,5 @@ jobs:
run: ./bin/acr purge --registry=radixdevapp.azurecr.io --password=${{steps.token.outputs.token}} --username= --filter='*/cache:.*' --ago=12h --untagged --dry-run

- name: Revoke GitHub IP on StorageAccount
run: az acr network-rule remove --name radixdevapp --ip-address ${{ steps.github_public_ip.outputs.ipv4 }}
run: az acr network-rule remove --name radixdevapp --ip-address ${{ steps.github_public_ip.outputs.ipv4 }} --query provisioningState

0 comments on commit 2ff2e68

Please sign in to comment.