Skip to content

Instantly share code, notes, and snippets.

@chmouel
Last active May 4, 2019 03:25
Show Gist options
  • Save chmouel/664095ecb84271b69bf2b9fccc78e5e8 to your computer and use it in GitHub Desktop.
Save chmouel/664095ecb84271b69bf2b9fccc78e5e8 to your computer and use it in GitHub Desktop.
docker pull image from openshift ci and push to quay openshift-pipeline
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