Skip to content

Commit

Permalink
[ci] untag old betas
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Feb 9, 2024
1 parent a7ae983 commit e934baa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd-syft-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,17 @@ jobs:
for repo in $REPO_LIST
do
echo "Cleaning up '$repo'"
# remove dev tags
az acr repository show-tags --name $ACR_REGISTRY_NAME --repository $repo --orderby time_desc --output tsv \
| grep dev- \
| tail -n +$TAIL_FROM_LINE \
| xargs -r -I% az acr repository untag --name $ACR_REGISTRY_NAME --image $repo:%
# remove beta tags
az acr repository show-tags --name $ACR_REGISTRY_NAME --repository $repo --orderby time_desc --output tsv \
| grep beta \
| tail -n +$TAIL_FROM_LINE \
| xargs -r -I% az acr repository untag --name $ACR_REGISTRY_NAME --image $repo:%
done
- name: Logout and cleanup Azure account
Expand Down

0 comments on commit e934baa

Please sign in to comment.