Skip to content

Commit

Permalink
Fix image replacement
Browse files Browse the repository at this point in the history
This will fix the image replacement as the
busybox and tianon/true image has sha also now
  • Loading branch information
piyush-garg committed May 20, 2020
1 parent 29bebe2 commit 4a53926
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 4a53926

Please sign in to comment.