diff --git a/Dockerfile b/Dockerfile index 51f234d..2af0318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM registry.access.redhat.com/ubi9/go-toolset:1.18.9 AS builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder COPY . . diff --git a/build.sh b/build.sh index be88c7d..367dff4 100755 --- a/build.sh +++ b/build.sh @@ -35,5 +35,5 @@ case "$*" in (*-cover*) build_flags="-v -cover";; esac -go build ${build_flags} -ldflags="-X 'main.BuildTime=$buildtime' -X 'main.BuildVersion=$version' -X 'main.BuildBranch=$branch' -X 'main.BuildCommit=$commit' -X 'main.UtilsVersion=$utils_version' -X 'main.OCPRulesVersion=$ocp_rules_version'" +go build ${build_flags} -buildvcs=false -ldflags="-X 'main.BuildTime=$buildtime' -X 'main.BuildVersion=$version' -X 'main.BuildBranch=$branch' -X 'main.BuildCommit=$commit' -X 'main.UtilsVersion=$utils_version' -X 'main.OCPRulesVersion=$ocp_rules_version'" exit $? diff --git a/go.mod b/go.mod index f7aa817..61bd84a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/RedHatInsights/insights-content-service -go 1.16 +go 1.20 require ( github.com/BurntSushi/toml v1.3.2