Remove problematic workflow "Remove untagged images" #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR removes workflow
Remove untagged images
.Remove untagged images
uses the GitHub actioncamargo/delete-untagged-action
to remove untagged images. And, the actioncamargo/delete-untagged-action
uses the following GitHub API to get a list ofuntagged
images which will be removed.https://api.github.com/orgs/scalar-labs/packages/container/scalar-admin-for-kubernetes/versions
On the other hand, now, we push multi-platform images to support several architecture environments.
In the multi-platform image, there are several images/tags in the
one
image as follows. In this case, there are three tags under the1.2.0
image. By this configuration, users can pull appropriate images without being aware of both differences based on their environment. (Note: We push these images by usingbuildx
.)1.2.0
(base tag)sha256:xxxx (amd64 image of 1.2.0)
sha256:yyyy (amm64 image of 1.2.0)
However, the GitHub API that I mentioned above treats
sha256:xxxx
andsha256:yyyy
asuntagged
images. So, the actioncamargo/delete-untagged-action
removes these tags.As a result, the necessary images are removed, and the
docker pull
command returns the following error.To avoid this issue, we have to stop this workflow. So, I just removed it in this PR.
Related issues and/or PRs
N/A
Changes made
.github/workflows/remove-untagged-images.yaml
.Checklist
Additional notes (optional)
If we remove this workflow, a lot of
untagged
images remain in the GitHub Packages. So, we have to consider to another way to remove appropriateuntagged
images.