ci: Add Job to cleanup older images for all builds
Closes #265 (closed)
- Keep the latest $NUM_IMAGES_TO_KEEP no. of images in a list sorted by creation time in descending order.
- The NUM_IMAGES_TO_KEEP value should always be postive so that the list of servers to delete will be calculated correctly
- Never run the cleanup_img job if NUM_IMAGES_TO_KEEP is non-postive. So if you intend to not cleanup the images for any reason, just pass a negative value or 0 to the NUM_IMAGES_TO_KEEP
Edited by Eesaan Atluri
Merge request reports
Activity
Filter activity
added Sprint 25-13 label
assigned to @atlurie
added 6 commits
- f1e93d6c - ci: Job to cleanup older images based on NUM_IMAGES_TO_KEEP var
- 71980e8b - ci: Add a default value for no. of imgs to retain
- 8597ca8e - ci: Use quotes to prevent interpreting it as bash cmd
- 1a48f6f7 - ci: Quote the list elements as packer requires it
- 9ec39604 - ci: Sort image list by creation time
- b4e6feca - ci: Run cleanup_img job only for the img builds
Toggle commit listadded 6 commits
- 676bb367 - ci: Job to cleanup older images based on NUM_IMAGES_TO_KEEP var
- d32e0f1e - ci: Add a default value for no. of imgs to retain
- 347a639a - ci: Use quotes to prevent interpreting list as bash cmd
- 042e4bf7 - ci: Quote the list elements as packer requires it
- f3dd0a88 - ci: Sort image list by creation time to prepare for cleanup
- 8d2ba6cd - ci: Run cleanup_img job only for the img builds
Toggle commit listadded 1 commit
- c64bdc9e - ci: Do not run cleanup_img job if the build fails
- Resolved by Eesaan Atluri
mentioned in issue #268
added 1 commit
- 687f6a47 - feat: updating tags to be generated first and have naming follow after
Please register or sign in to reply