Last active
July 15, 2022 05:08
-
-
Save guitarrapc/7b8778cdb843367a25fe2c6fcbb1f9c8 to your computer and use it in GitHub Desktop.
ACR Task Run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --ago 0d にすると経過0dイメージ = すべての過去のイメージを対象、となる | |
# --untagged は、イメージに紐づく manifest も削除する | |
# --dry-run は、実際に削除せずイメージ削除対象を羅列してシミュレーションしてくれる | |
PURGE_CMD="acr purge --filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' --ago 0d --untagged --dry-run" | |
az acr run --cmd "$PURGE_CMD" --registry myregistry /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment