Add support for go 1.24 and phased out support for go 1.22 (#1302)

Signed-off-by: Cosmin Cojocar <ccojocar@google.com>
This commit is contained in:
Cosmin Cojocar 2025-02-13 10:16:37 +01:00 committed by GitHub
parent 9552f0372d
commit 77238291df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
version: [{go: '1.22.12', golangci: 'latest'}, {go: '1.23.6', golangci: 'latest'}] version: [{go: '1.23.6', golangci: 'latest'}, {go: '1.24.0', golangci: 'latest'}]
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GO111MODULE: on GO111MODULE: on
@ -48,7 +48,7 @@ jobs:
- name: Setup go - name: Setup go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.23.6' go-version: '1.24.0'
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: actions/cache@v4 - uses: actions/cache@v4

View file

@ -17,7 +17,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.23.6' go-version: '1.24.0'
- name: Install Cosign - name: Install Cosign
uses: sigstore/cosign-installer@v3 uses: sigstore/cosign-installer@v3
with: with:
@ -67,7 +67,7 @@ jobs:
tags: ${{steps.meta.outputs.tags}} tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}} labels: ${{steps.meta.outputs.labels}}
push: true push: true
build-args: GO_VERSION=1.23 build-args: GO_VERSION=1.24
- name: Sign Docker Image - name: Sign Docker Image
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD" run: cosign sign --yes --key /tmp/cosign.key ${DIGEST} --registry-username="$secrets.DOCKER_USERNAME" --registry-password="::add-mask::$secrets.DOCKER_PASSWORD"
env: env: