diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 62223ee6..ca627369 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d66c9f0b..6e2aabab 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 12ea00f2..f5aff5d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 diff --git a/go.mod b/go.mod index 33fe9581..e6515bf7 100644 --- a/go.mod +++ b/go.mod @@ -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