Last active
May 4, 2019 03:25
-
-
Save chmouel/664095ecb84271b69bf2b9fccc78e5e8 to your computer and use it in GitHub Desktop.
docker pull image from openshift ci and push to quay openshift-pipeline
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
set -ex | |
v=${1} | |
[[ -z ${v} ]] && { | |
echo "You need a release number i.e: 0.3.1" | |
} | |
for p in bash controller creds-init entrypoint git-init kubeconfigwriter nop webhook;do | |
docker pull registry.svc.ci.openshift.org/openshift/knative:tektoncd-pipeline-${p} | |
docker tag registry.svc.ci.openshift.org/openshift/knative:tektoncd-pipeline-${p} quay.io/openshift-pipeline/tektoncd-pipeline-$p:v${v} | |
docker tag quay.io/openshift-pipeline/tektoncd-pipeline-$p:v${v} quay.io/openshift-pipeline/tektoncd-pipeline-$p:latest; | |
docker push quay.io/openshift-pipeline/tektoncd-pipeline-$p:v${v} | |
docker push quay.io/openshift-pipeline/tektoncd-pipeline-$p:latest | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment