Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .test-infra/tools/stale_dataflow_prebuilt_image_cleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ for image_name in ${IMAGE_NAMES[@]}; do
# list containers of the image name
echo "Command" gcloud container images list-tags \
${image_name} \
--sort-by=TIMESTAMP --filter="NOT tags:latest AND timestamp.datetime < $DELETE_BEFORE_DAY" \
--sort-by=TIMESTAMP --filter="NOT tags:(latest,2.*.0) AND timestamp.datetime < $DELETE_BEFORE_DAY" \
--format="get(digest,timestamp.year)"
STALE_IMAGES=$(gcloud container images list-tags \
${image_name} \
--sort-by=TIMESTAMP --filter="NOT tags:latest AND timestamp.datetime < $DELETE_BEFORE_DAY" \
--sort-by=TIMESTAMP --filter="NOT tags:(latest,2.*.0) AND timestamp.datetime < $DELETE_BEFORE_DAY" \
--format="get(digest,timestamp.year)")

STALE_IMAGES_CURRENT=($STALE_IMAGES)
Expand Down
Loading