Skip to content

Commit

Permalink
update-go-version: remove regex for ubi8/go-toolset images
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
praveenkumar committed Sep 19, 2024
1 parent d86787b commit 674e980
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions update-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ go mod edit -go "${golang_base_version}.0" tools/go.mod
sed -i "s,^GOVERSION = 1.[0-9]\+,GOVERSION = ${golang_base_version}," Makefile
sed -i "s,^\(FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-\)1.[0-9]\+,\1${golang_base_version}," images/*/Dockerfile
sed -i "s,^\(FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-\)1.[0-9]\+,\1${golang_base_version}," images/*/Containerfile
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
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
for f in .github/workflows/*.yml; do
if [ $(yq eval '.jobs.build.strategy.matrix | has("go")' "$f") == "true" ]; then
yq eval --inplace ".jobs.build.strategy.matrix.go[0] = ${golang_base_version} | .jobs.build.strategy.matrix.go[0] style=\"single\"" "$f";
Expand Down

0 comments on commit 674e980

Please sign in to comment.