Skip to content

Commit

Permalink
chore(deps): update golang to 1.22
Browse files Browse the repository at this point in the history
The EC API is now using golang 1.22 so version bumps of it would update
the golang version in go.mod, pulled this in a separate commit.

The changes to GitHub Actions Workflow files allow future updates to be
done solely in the go.mod file.

Signed-off-by: Zoran Regvart <[email protected]>
  • Loading branch information
zregvart committed Nov 20, 2024
1 parent d479493 commit e6d2bc5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Go 1.x
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version-file: schema/go.mod
- name: Run tests
run: make test
- name: Codecov
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
env:
OPERATOR_SDK_VERSION: v1.18.0
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
uses: actions/cache@v4
id: cache-operator-sdk
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM registry.access.redhat.com/ubi9/go-toolset:1.21.11-9 as builder
FROM registry.access.redhat.com/ubi9/go-toolset:1.22.5 as builder

# Copy the Go Modules manifests
COPY go.mod go.mod
Expand Down Expand Up @@ -27,7 +27,7 @@ ENV ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS}

# Use ubi-micro as minimal base image to package the manager binary
# See https://catalog.redhat.com/software/containers/ubi9/ubi-micro/615bdf943f6014fa45ae1b58
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4-15
FROM registry.access.redhat.com/ubi9/ubi-micro:9.5
COPY --from=builder /opt/app-root/src/manager /

# It is mandatory to set these labels
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/konflux-ci/release-service

go 1.21
go 1.22

require (
github.com/enterprise-contract/enterprise-contract-controller/api v0.1.50
Expand Down

0 comments on commit e6d2bc5

Please sign in to comment.