Skip to content

Instantly share code, notes, and snippets.

@vdemeester
Last active May 31, 2019 09:02
Show Gist options
  • Select an option

  • Save vdemeester/bfb094537d216c86d0cd380a612164f0 to your computer and use it in GitHub Desktop.

Select an option

Save vdemeester/bfb094537d216c86d0cd380a612164f0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
wget https://storage.googleapis.com/tekton-releases/latest/release.yaml
sed -e 's%\(.* image: \)\(githu.com\)\(.*\/\)\(test\/\)\(.*\)%\1\2 \3\4test-\5%' release.yaml |
sed -e 's%\(.* image: \)\(gcr.io\)\(.*\/\)\(.*\)@\(.*\)%\1 quay.io/openshift-pipeline/tektoncd-pipeline-\4\:v0\.4\.0%' |
# process these images separately as they're passed as arguments to other containers
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/bash@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-bash\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/creds-init@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-creds-init\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/entrypoint@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-entrypoint\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-git-init\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/gsutil@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-gsutil\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-imagedigestexporter\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/kubeconfigwriter@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-kubeconfigwriter\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/nop@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-nop\:v0\.4\.0%g' > release.oc.yaml
rm release.yaml
oc apply -f release.oc.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment