From 1acbdfc2040210a85a2e2cb156a22add964c1414 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Mon, 3 Jun 2024 15:05:08 +0200 Subject: [PATCH] Upgrade Go version to 1.21 (#182) --- .github/workflows/build-images.yaml | 8 ++++---- .github/workflows/release.yaml | 4 ++-- .github/workflows/test.yaml | 16 ++++++++-------- Dockerfile | 2 +- go.mod | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 2915666d..7b73d87b 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -89,10 +89,10 @@ jobs: runs-on: ubuntu-20.04 if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/v') # We cannot use `env.MAIN_BRANCH_NAME` because `env` context is not available to `job.if`. See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability steps: - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Check out code uses: actions/checkout@v3 @@ -164,10 +164,10 @@ jobs: runs-on: ubuntu-20.04 if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/v') # We cannot use `env.MAIN_BRANCH_NAME` because `env` context is not available to `job.if`. See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability steps: - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e7a55bb3..429358f3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,10 +31,10 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gettext-base - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Checkout code at git ref uses: actions/checkout@v3 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1d083ad2..ce33f9a1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,10 +12,10 @@ jobs: name: Verify manifests runs-on: ubuntu-latest steps: - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Check out code uses: actions/checkout@v3 @@ -27,10 +27,10 @@ jobs: name: Verify bundle runs-on: ubuntu-latest steps: - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Check out code uses: actions/checkout@v3 @@ -42,10 +42,10 @@ jobs: name: Verify fmt runs-on: ubuntu-latest steps: - - name: Set up Go 1.20.x + - name: Set up Go 1.21.x uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x id: go - name: Check out code uses: actions/checkout@v3 @@ -57,7 +57,7 @@ jobs: name: Test Scripts strategy: matrix: - go-version: [1.20.x] + go-version: [1.21.x] platform: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.platform }} defaults: @@ -79,7 +79,7 @@ jobs: name: Unit Tests strategy: matrix: - go-version: [1.20.x] + go-version: [1.21.x] platform: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.platform }} defaults: diff --git a/Dockerfile b/Dockerfile index b033f972..21c2b5d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Build the authorino binary # https://catalog.redhat.com/software/containers/ubi9/go-toolset -FROM registry.access.redhat.com/ubi9/go-toolset:1.20 AS builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS builder USER root WORKDIR /workspace diff --git a/go.mod b/go.mod index cdbad25b..2255dfbf 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kuadrant/authorino-operator -go 1.20 +go 1.21 require ( github.com/go-logr/logr v1.2.4