Skip to content

Commit 85269f9

Browse files
authored
Use Go 1.25 (config-syncer#570)
Signed-off-by: 1gtm <1gtm@appscode.com> Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 22f31b1 commit 85269f9

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,25 @@ concurrency:
1717
jobs:
1818
build:
1919
name: Build
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-24.04
2121

2222
steps:
23-
- name: Set up Go 1.20
24-
uses: actions/setup-go@v1
23+
- name: Set up Go 1.25
24+
uses: actions/setup-go@v5
2525
with:
26-
go-version: '1.20'
26+
go-version: '1.25'
2727
id: go
2828

29-
- uses: actions/checkout@v1
29+
- uses: actions/checkout@v4
3030

3131
- name: Set up QEMU
3232
id: qemu
33-
uses: docker/setup-qemu-action@v1
33+
uses: docker/setup-qemu-action@v3
34+
with:
35+
cache-image: false
3436

3537
- name: Set up Docker Buildx
36-
uses: docker/setup-buildx-action@v1
38+
uses: docker/setup-buildx-action@v3
3739

3840
- name: Prepare Host
3941
run: |
@@ -42,7 +44,7 @@ jobs:
4244
chmod +x yq
4345
sudo mv yq /usr/local/bin/yq
4446
# install kubectl
45-
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
47+
curl -LO https://dl.k8s.io/release/v1.32.1/bin/linux/amd64/kubectl
4648
chmod +x ./kubectl
4749
sudo mv ./kubectl /usr/local/bin/kubectl
4850
@@ -77,14 +79,14 @@ jobs:
7779
7880
kubernetes:
7981
name: Kubernetes
80-
runs-on: ubuntu-20.04
82+
runs-on: ubuntu-24.04
8183
needs: build
8284
strategy:
8385
matrix:
84-
k8s: [v1.19.16, v1.27.1]
86+
k8s: [v1.33.2]
8587

8688
steps:
87-
- uses: actions/checkout@v1
89+
- uses: actions/checkout@v4
8890

8991
- name: Check out installer
9092
run: |
@@ -95,7 +97,7 @@ jobs:
9597
id: kind
9698
uses: engineerd/setup-kind@v0.5.0
9799
with:
98-
version: v0.17.0
100+
version: v0.29.0
99101
config: hack/kubernetes/kind.yaml
100102
image: kindest/node:${{ matrix.k8s }}
101103

.github/workflows/release-tracker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717

1818
- name: Prepare git
1919
env:

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
build:
1515
name: Build
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
steps:
1818
- name: Check out code into the Go module directory
1919
uses: actions/checkout@v1
@@ -25,10 +25,12 @@ jobs:
2525
2626
- name: Set up QEMU
2727
id: qemu
28-
uses: docker/setup-qemu-action@v1
28+
uses: docker/setup-qemu-action@v3
29+
with:
30+
cache-image: false
2931

3032
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v1
33+
uses: docker/setup-buildx-action@v3
3234

3335
- name: Publish to GitHub Container Registry
3436
env:

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ BIN_PLATFORMS := $(DOCKER_PLATFORMS)
6262
OS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
6363
ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
6464

65-
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian11
66-
BASEIMAGE_DBG ?= debian:bullseye
65+
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian12
66+
BASEIMAGE_DBG ?= debian:12
6767

6868
IMAGE := $(REGISTRY)/$(BIN)
6969
VERSION_PROD := $(VERSION)
@@ -72,9 +72,9 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
7272
TAG_PROD := $(TAG)
7373
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)
7474

75-
GO_VERSION ?= 1.20
75+
GO_VERSION ?= 1.25
7676
BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION)
77-
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.5.1
77+
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.13.0
7878

7979
OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)
8080
ifeq ($(OS),windows)
@@ -338,7 +338,7 @@ lint: $(BUILD_DIRS)
338338
--env HTTPS_PROXY=$(HTTPS_PROXY) \
339339
--env GOFLAGS="-mod=vendor" \
340340
$(BUILD_IMAGE) \
341-
golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default --skip-dirs=client,vendor
341+
golangci-lint run --enable $(ADDTL_LINTERS) --timeout=10m --exclude-files="generated.*\.go$\" --exclude-dirs-use-default --exclude-dirs=client,vendor
342342

343343
$(BUILD_DIRS):
344344
@mkdir -p $@

0 commit comments

Comments
 (0)