Last active
March 3, 2022 14:54
-
-
Save nickboldt/c38ea07145f4e096293fd2edf0c90a04 to your computer and use it in GitHub Desktop.
untag brew image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for future release | |
CRW_VERSION=2.yy | |
images_to_untag=$(brew list-tagged crw-${CRW_VERSION}-rhel-8-container-candidate | \ | |
grep -E "operator-(bundle|metadata)" | grep freshmaker | sed -r -e "s@ +crw-.+-container-candidate freshmaker@@") | |
echo "Found these images to untag:" | |
echo $images_to_untag | |
brew untag crw-${CRW_VERSION}-rhel-8-container-candidate $images_to_untag | |
# --------------- | |
# for 2.15.1 release | |
brew list-tagged crw-2.15-rhel-8-container-candidate | grep operator-metadata | grep freshmaker | |
# remove freshmaker images | |
brew untag crw-2.15-rhel-8-container-candidate \ | |
codeready-workspaces-rhel8-operator-metadata-container-2.15-63.1646145220 \ | |
codeready-workspaces-rhel8-operator-metadata-container-2.15-62.1646144223 | |
brew list-tagged crw-2.15-rhel-8-container-candidate | grep operator-bundle | grep freshmaker | |
brew untag crw-2.15-rhel-8-container-candidate \ | |
codeready-workspaces-operator-bundle-container-2.15-263.1646144220 \ | |
codeready-workspaces-operator-bundle-container-2.15-264.1646145217 | |
# --------------- | |
# manually fix :latest and :2.12 tags to work around freshmaker | |
brew untag crw-2.12-rhel-8-container-candidate \ | |
codeready-workspaces-pluginregistry-rhel8-container-2.12-8.1634134066 \ | |
codeready-workspaces-devfileregistry-rhel8-container-2.12-62.1634134070 | |
for tag in latest 2.12; do | |
skopeo --insecure-policy copy --all docker://quay.io/crw/pluginregistry-rhel8:2.12-8 docker://quay.io/crw/pluginregistry-rhel8:${tag} | |
skopeo --insecure-policy copy --all docker://quay.io/crw/devfileregistry-rhel8:2.12-62 docker://quay.io/crw/devfileregistry-rhel8:${tag} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment