Skip to content

Commit

Permalink
Merge pull request tektoncd#396 from piyush-garg/fix_replacement
Browse files Browse the repository at this point in the history
Fix image replacement
  • Loading branch information
openshift-merge-robot authored May 20, 2020
2 parents 29bebe2 + 4a53926 commit fb881c1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openshift/resolve-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function resolve_resources() {
#
# NOTE(chmou): We are using our owns stuff for external images :
#
# tianon/true => openshift/ci-operator/tekton-images/nop/Dockerfile
# busybox => registry.access.redhat.com/ubi8/ubi-minimal:latest \
sed -e "s,ko://,,g" -e "s%tianon/true%${registry_prefix}-nop:${image_tag}%" \
-e "s%busybox%registry.access.redhat.com/ubi8/ubi-minimal:latest%" \
# tianon/true@sha* => openshift/ci-operator/tekton-images/nop/Dockerfile
# busybox@sha* => registry.access.redhat.com/ubi8/ubi-minimal:latest \
sed -e "s,ko://,,g" -e "s%tianon/true.*\(\"\)%${registry_prefix}-nop:${image_tag}%\1" \
-e "s%busybox.*\(\"\)%registry.access.redhat.com/ubi8/ubi-minimal:latest%\1" \
-e "s%\(.* image:\)\(github.com\)\(.*\/\)\(.*\)%\1 ${registry_prefix}-\4:${image_tag}%" $yaml \
-r -e "s,github.com/tektoncd/pipeline/cmd/${image_regexp},${registry_prefix}-\1:${image_tag},g" \
> ${TMP}
Expand All @@ -48,10 +48,10 @@ function resolve_resources() {
#
# NOTE(chmou): We are using our owns stuff for external images :
#
# tianon/true => openshift/ci-operator/tekton-images/nop/Dockerfile
# busybox => registry.access.redhat.com/ubi8/ubi-minimal:latest \
sed -e "s,ko://,,g" -e "s%tinaon/true%${registry_prefix}:tektoncd-pipeline-nop%" \
-e "s%busybox%registry.access.redhat.com/ubi8/ubi-minimal:latest%" \
# tianon/true@sha* => openshift/ci-operator/tekton-images/nop/Dockerfile
# busybox@sha* => registry.access.redhat.com/ubi8/ubi-minimal:latest \
sed -e "s,ko://,,g" -e "s%tinaon/true.*\(\"\)%${registry_prefix}:tektoncd-pipeline-nop%\1" \
-e "s%busybox.*\(\"\)%registry.access.redhat.com/ubi8/ubi-minimal:latest%\1" \
-e 's%\(.* image:\)\(github.com\)\(.*\/\)\(test\/\)\(.*\)%\1\2 \3\4test-\5%' $yaml \
-e "s%\(.* image:\)\(github.com\)\(.*\/\)\(.*\)%\1 ""$registry_prefix"'\:tektoncd-pipeline-\4%' \
-re "s,github.com/tektoncd/pipeline/cmd/${image_regexp},${registry_prefix}:tektoncd-pipeline-\1,g" \
Expand Down

0 comments on commit fb881c1

Please sign in to comment.