Skip to content

Commit

Permalink
Merge branch 'feature/rooted-images' of github.com:nationalarchives/d…
Browse files Browse the repository at this point in the history
…ocker into feature/rooted-images
  • Loading branch information
ahosgood committed Oct 13, 2023
2 parents 6de7e66 + 214a87d commit b87d8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/remove-untagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
{ per_page: ${{ env.PER_PAGE }}
});
for(version of response.data) {
if (version.metadata.container.tags.length == 0) {
if (version.metadata.container.tags.length == 0 && version.name !== "latest" && version.name !== "preview") {
console.log("Delete " + version.id)
const deleteResponse = await github.request("DELETE /orgs/${{ github.repository_owner }}/packages/container/${{ matrix.image-name }}/versions/" + version.id, { });
Expand Down

0 comments on commit b87d8be

Please sign in to comment.