Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created July 15, 2022 05:08
Show Gist options
  • Save guitarrapc/c0b99afbfcaaca46ad76790a62a34cfc to your computer and use it in GitHub Desktop.
Save guitarrapc/c0b99afbfcaaca46ad76790a62a34cfc to your computer and use it in GitHub Desktop.
ACR Task Create
# --ago 0d にすると経過0dイメージ = すべての過去のイメージを対象、となる
# --untagged は、イメージに紐づく manifest も削除する
PURGE_CMD="acr purge --filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' --ago 0d --untagged --dry-run"
az acr task create --name purgeTask --cmd "$PURGE_CMD" --schedule "0 0 * * *" --registry myregistry --context /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment