From 26e57d6b340778c2983cd61775bc7e8bb41d002a Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 12 Feb 2024 09:55:28 +0100 Subject: [PATCH] Update CI to go version 1.22 Signed-off-by: Cosmin Cojocar --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- Makefile | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bfd3cce98..e71b8fff12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - version: [{go: '1.20.12', golangci: 'latest'}, {go: '1.21.5', golangci: 'latest'}] + version: [{go: '1.21.7', golangci: 'latest'}, {go: '1.22.0', golangci: 'latest'}] runs-on: ubuntu-latest env: GO111MODULE: on @@ -46,7 +46,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: '1.21.5' + go-version: '1.22.0' - name: Checkout Source uses: actions/checkout@v4 - uses: actions/cache@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c519d9170b..abc163e89e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21.5' + go-version: '1.22.0' - name: Install Cosign uses: sigstore/cosign-installer@v3 with: - cosign-release: 'v2.2.0' + cosign-release: 'v2.2.3' - name: Store Cosign private key in a file run: 'echo "$COSIGN_KEY" > /tmp/cosign.key' shell: bash @@ -67,7 +67,7 @@ jobs: tags: ${{steps.meta.outputs.tags}} labels: ${{steps.meta.outputs.labels}} push: true - build-args: GO_VERSION=1.21 + build-args: GO_VERSION=1.22 - name: Sign Docker Image run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} env: diff --git a/Makefile b/Makefile index f167905c68..4f6cce7651 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ GOSEC ?= $(GOBIN)/gosec GINKGO ?= $(GOBIN)/ginkgo GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) GOVULN_MIN_VERSION = 17 -GO_VERSION = 1.21 +GO_VERSION = 1.22 default: $(MAKE) build