chore: update to go 1.22 (#1315)
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
This commit is contained in:
Родитель
96f34d0482
Коммит
03fd6651ca
|
@ -35,7 +35,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
check-latest: true
|
||||
- name: Build azwi
|
||||
run: |
|
||||
|
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
check-latest: true
|
||||
- name: Azure CLI
|
||||
run: |
|
||||
|
@ -116,7 +116,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
check-latest: true
|
||||
- name: Build azwi
|
||||
run: |
|
||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "^1.21"
|
||||
go-version: "^1.22"
|
||||
check-latest: true
|
||||
- name: Run tests
|
||||
run: make test
|
||||
|
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
ref: "${{ github.event.inputs.based_on_branch }}"
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
check-latest: true
|
||||
- run: make release-manifest
|
||||
env:
|
||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
||||
with:
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
check-latest: true
|
||||
- id: get-tag
|
||||
name: Get tag
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
run:
|
||||
deadline: 20m
|
||||
go-version: "1.21"
|
||||
go-version: "1.22"
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM --platform=${TARGETPLATFORM:-linux/amd64} registry.k8s.io/build-image/distroless-iptables:v0.5.1
|
||||
FROM --platform=${TARGETPLATFORM:-linux/amd64} registry.k8s.io/build-image/distroless-iptables:v0.5.2
|
||||
|
||||
COPY ./init/init-iptables.sh /bin/
|
||||
RUN chmod +x /bin/init-iptables.sh
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21-bookworm as builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.22-bookworm as builder
|
||||
|
||||
ARG LDFLAGS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the manager binary
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21-bookworm as builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.22-bookworm as builder
|
||||
|
||||
ARG LDFLAGS
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21-bookworm as builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.22-bookworm as builder
|
||||
|
||||
WORKDIR /workspace
|
||||
# Copy the Go Modules manifests
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG SERVERCORE_CACHE=gcr.io/k8s-staging-e2e-test-images/windows-servercore-cache:1.0-linux-amd64-${OS_VERSION:-1809}
|
||||
ARG BASEIMAGE=mcr.microsoft.com/windows/nanoserver:${OS_VERSION:-1809}
|
||||
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/oss/go/microsoft/golang:1.21-bookworm as builder
|
||||
FROM --platform=linux/amd64 mcr.microsoft.com/oss/go/microsoft/golang:1.22-bookworm as builder
|
||||
|
||||
WORKDIR /workspace
|
||||
# Copy the Go Modules manifests
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
|||
module github.com/Azure/azure-workload-identity
|
||||
|
||||
go 1.21
|
||||
go 1.22
|
||||
|
||||
require (
|
||||
github.com/Azure/aad-pod-identity v1.8.17
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module github.com/Azure/azure-workload-identity/test/e2e
|
||||
|
||||
go 1.21
|
||||
go 1.22
|
||||
|
||||
replace (
|
||||
k8s.io/api => k8s.io/api v0.26.3
|
||||
|
|
Загрузка…
Ссылка в новой задаче