Skip to content

Commit

Permalink
bump the ubi8/go-toolset to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
petracihalova committed Nov 28, 2024
1 parent bb536b4 commit d8a060b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .tekton/entitlements-api-go-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ spec:
# set the working directory to value from previous step
workingDir: /var/workdir/source
# Use image that suites your use case
image: registry.access.redhat.com/ubi8/go-toolset:1.21.13
image: registry.access.redhat.com/ubi8/go-toolset:1.22.7
securityContext:
# If the task step needs write access to the volume, set the runAsUser to 0 (root).
runAsUser: 0
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Manual Build: YYYY-MM-DD
# Use go-toolset as the builder image
# Once built, copys GO executable to a smaller image and runs it from there
# FROM registry.redhat.io/ubi8/go-toolset as builder
#FROM quay.io/projectquay/golang:1.20 as builder

FROM registry.access.redhat.com/ubi8/go-toolset:1.21.13 as builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.22.7 as builder

WORKDIR /go/src/app

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ make

If your local version differs from what entitlements is using, you can download the desired version of go here: [go.dev/doc/manage-install](https://go.dev/doc/manage-install), and then pass the path to the go binary to all make commands like so:
```sh
make GO=~/go/bin/go1.20
make GO=~/go/bin/go1.22
```

## Certificates and Configuration
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/RedHatInsights/entitlements-api-go

go 1.21
go 1.22

require (
github.com/766b/chi-logger v0.0.0-20180309043024-d2679d398ce4
Expand Down
2 changes: 1 addition & 1 deletion pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export APP_NAME="entitlements" # name of app-sre "application" folder this comp
export COMPONENT_NAME="entitlements-api-go" # name of app-sre "resourceTemplate" in deploy.yaml for this component
export IMAGE="quay.io/cloudservices/entitlements-api-go" # the image location on quay

export GOROOT="/opt/go/1.20.10"
export GOROOT="/opt/go/1.22.5"
export PATH="${GOROOT}/bin:${PATH}"

echo "*** GO version ***"
Expand Down

0 comments on commit d8a060b

Please sign in to comment.