Skip to content

Commit 674e980

Browse files
committed
update-go-version: remove regex for ubi8/go-toolset images
In previous commit we switched the ubi8/go-toolset images to openshift ci images so now there is no ubi8/go-toolset base image in any containerfile. This PR remove that sed command for replace go version for ubi8/go-toolset.
1 parent d86787b commit 674e980

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

update-go-version.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ go mod edit -go "${golang_base_version}.0" tools/go.mod
1515
sed -i "s,^GOVERSION = 1.[0-9]\+,GOVERSION = ${golang_base_version}," Makefile
1616
sed -i "s,^\(FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-\)1.[0-9]\+,\1${golang_base_version}," images/*/Dockerfile
1717
sed -i "s,^\(FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-\)1.[0-9]\+,\1${golang_base_version}," images/*/Containerfile
18-
sed -i "s,^FROM registry.access.redhat.com/ubi8/go-toolset:[.0-9]\+,FROM registry.access.redhat.com/ubi8/go-toolset:${golang_base_version}," images/*/Dockerfile
19-
sed -i "s,^FROM registry.access.redhat.com/ubi8/go-toolset:[.0-9]\+,FROM registry.access.redhat.com/ubi8/go-toolset:${golang_base_version}," images/*/Containerfile
2018
for f in .github/workflows/*.yml; do
2119
if [ $(yq eval '.jobs.build.strategy.matrix | has("go")' "$f") == "true" ]; then
2220
yq eval --inplace ".jobs.build.strategy.matrix.go[0] = ${golang_base_version} | .jobs.build.strategy.matrix.go[0] style=\"single\"" "$f";

0 commit comments

Comments
 (0)