Closed cpointe-ibllanos closed 1 month ago
all test steps are passing!
Runtime configuration
private repository false
project owner boozallen
repository aissemble
package ^aissemble(?!.*?-chart$).*$
expand-packages true
exclude-tags ^\d+\.\d+\.\d+$
keep-n-tagged 2
log-level INFO
use-regex true
1.9.0-SNAPSHOT
and 1.8.2-SNAPSHOT
) are not being prunedExcluding tags for deletion
includes all release versions 1.8.2
, 1.8.1
, 1.8.0
, 1.7.0
and they are not being pruned1.8.0
, 1.8.1
, 1.7.0
, 1.8.2-SNAPSHOT
and 1.9.0-SNAPSHOT
docker image
Description
The GH prune workflow (dataaxiom/ghcr-cleanup-action) has new changes changes that we can leverage to simplify our existing workflow file.
Specifically, the ghcr-cleanup-action now supports regular expressions and allows multiple package names, allowing us to remove most, if not all, scripting (phase 1: fetch_image_info).
DOD
Test Strategy/Script
dry-run: true
)prune_ghcr (image-name)
steps to confirm the followingPrune ghcr > Runtime configuration
section should look like the following:Prune ghcr > Loaded Package Data
section - note the two most recent NON-release versions found. For most images, this should be1.9.0-SNAPSHOT
and1.8.2-SNAPSHOT
.aissemble-airflow
,aissemble-kafka
, andaissemble-mlflow
images are deprecated and will not have a1.9.0-SNAPSHOT
tagPrune ghcr > Finding tagged images to delete, keeping 2 versions section
and confirm that the list does not include any release versions (e.g.,1.8.0
,1.7.0
) or the two most recent non-release versions (e.g.,1.9.0-SNAPSHOT
,1.8.2-SNAPSHOT
)Prune ghcr > Deleting packages
section and confirm that the list does not include any release versions or the two most recent non-release versionsFinal Test:
prune_ghcr (image-name)
steps to confirm the followingPrune ghcr > Runtime configuration
section should look like the following:Prune ghcr > Loaded Package Data
section - note the two most recent NON-release versions found. For most images, this should be1.9.0-SNAPSHOT
and1.8.2-SNAPSHOT
.aissemble-airflow
,aissemble-kafka
, andaissemble-mlflow
images are deprecated and will not have a1.9.0-SNAPSHOT
tagPrune ghcr > Finding tagged images to delete, keeping 2 versions section
and confirm that the list does not include any release versions (e.g.,1.8.0
,1.7.0
) or the two most recent non-release versions (e.g.,1.9.0-SNAPSHOT
,1.8.2-SNAPSHOT
)Prune ghcr > Deleting packages
section and confirm that the list does not include any release versions or the two most recent non-release versions1.8.0
,1.8.1
,1.7.0
,1.8.2-SNAPSHOT
and1.9.0-SNAPSHOT
docker imageReferences/Additional Context
Container retention policy doc
References/Additional Context
More info can be found in this PR comment.