File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 3939 uses : actions/checkout@v4
4040 with :
4141 show-progress : false
42+ - name : Setup Go Version
43+ run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
4244 - id : govulncheck
4345 uses : golang/govulncheck-action@v1
4446 with :
45- go-version-input : 1.21.5
47+ go-version-input : ${{ env.GO_VERSION }}
4648 go-version-file : go.mod
Original file line number Diff line number Diff line change 77 name : Build
88 runs-on : ubuntu-latest
99 steps :
10+ - name : Setup Go Version
11+ run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
1012 - name : Set up Go 1.x
1113 uses : actions/setup-go@v2
1214 with :
13- go-version : ^1.21
14-
15+ go-version : ${{ env.GO_VERSION }}
16+
1517 - name : Check out code into the Go module directory
1618 uses : actions/checkout@v2
1719
1820 - name : Run unit tests
1921 run : |
2022 sudo snap install yq
2123 make test
22-
24+
2325 - name : Codecov
2426 uses : codecov/codecov-action@v1
2527 with :
3234
3335 - name : make quick-ci
3436 run : |
35- make quick-ci
37+ make quick-ci
Original file line number Diff line number Diff line change 1+ 1.21.5
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ MAKEFILE_PATH = $(dir $(realpath -s $(firstword $(MAKEFILE_LIST))))
44# Image URL to use all building/pushing image targets
55IMG ?= public.ecr.aws/eks/aws-load-balancer-controller:v2.7.0
66# Image URL to use for builder stage in Docker build
7- BUILD_IMAGE ?= public.ecr.aws/docker/library/golang:1.21.5
7+ GOLANG_VERSION ?= $(shell cat .go-version)
8+ BUILD_IMAGE ?= public.ecr.aws/docker/library/golang:$(GOLANG_VERSION )
89# Image URL to use for base layer in Docker build
910BASE_IMAGE ?= public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2023-09-06-1694026927.2
1011IMG_PLATFORM ?= linux/amd64,linux/arm64
2425GOBIN =$(shell go env GOBIN)
2526endif
2627
28+ export GOSUMDB = sum.golang.org
29+ export GOTOOLCHAIN = go$(GOLANG_VERSION )
30+
2731all : controller
2832
2933# Run tests
You can’t perform that action at this time.
0 commit comments