Created
December 27, 2019 16:51
-
-
Save dmc5179/85a3b0f21ec84a5759432f46bd310bf5 to your computer and use it in GitHub Desktop.
Mirror OpenShift 4 Nightly Release
This file contains hidden or 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
export OCP_RELEASE='4.3.0-0.nightly-2019-12-24-120035' | |
export LOCAL_REGISTRY='openshift4-registry.redhatgovsa.io:5000' | |
export LOCAL_REPOSITORY='ocp4/openshift4' | |
export PRODUCT_REPO='openshift-release-dev' | |
export LOCAL_SECRET_JSON='/home/ec2-user/pull-secret.txt' | |
export RELEASE_NAME="ocp-release-nightly" | |
oc adm -a ${LOCAL_SECRET_JSON} release mirror \ | |
--from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE} \ | |
--to=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} \ | |
--to-release-image=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment