Created
February 13, 2024 14:08
-
-
Save jfdenise/320072da1f2f38cc88c4d4442c8ef8fe to your computer and use it in GitHub Desktop.
push image built by WildFly Glow to openshift
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
# You must be logged onto openshift | |
export IMAGE=wildfly-glow-image-server-31_0_0_final:latest | |
export OPENSHIFT_NS=$(oc project -q) | |
oc registry login | |
# Copy the route in the env variable OPENSHIFT_IMAGE_REGISTRY | |
OPENSHIFT_IMAGE_REGISTRY=$(oc registry info) | |
docker login -u openshift -p $(oc whoami -t) $OPENSHIFT_IMAGE_REGISTRY | |
docker tag $IMAGE $OPENSHIFT_IMAGE_REGISTRY/$OPENSHIFT_NS/$IMAGE | |
docker push $OPENSHIFT_IMAGE_REGISTRY/$OPENSHIFT_NS/$IMAGE | |
oc set image-lookup wildfly-glow-image-server-31_0_0_final |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment