ci: update go version to 1.18 (#5084)
* ci: update go version to 1.18 * feat: update Dockerfile go version
This commit is contained in:
4
.github/workflows/e2e-test.yml
vendored
4
.github/workflows/e2e-test.yml
vendored
@@ -13,10 +13,10 @@ jobs:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.16
|
||||
- name: Set up Go 1.18
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
go-version: 1.18
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
|
||||
4
.github/workflows/nightly-builds.yml
vendored
4
.github/workflows/nightly-builds.yml
vendored
@@ -15,10 +15,10 @@ jobs:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.16
|
||||
- name: Set up Go 1.18
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
go-version: 1.18
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
|
||||
@@ -14,8 +14,8 @@ WORKDIR /tmp
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
|
||||
# Build
|
||||
FROM golang:1.16.3 as build_context
|
||||
# Build
|
||||
FROM golang:1.18.4 as build_context
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/usr/local/bin/
|
||||
@@ -30,7 +30,7 @@ RUN mv /workspace/bin/cmd/ks-apiserver ${OUTDIR}/usr/local/bin/
|
||||
# Final image
|
||||
#############
|
||||
|
||||
FROM alpine:3.11
|
||||
FROM alpine:3.11
|
||||
|
||||
COPY --from=base_os_context /out/ /
|
||||
COPY --from=build_context /out/ /
|
||||
|
||||
@@ -22,7 +22,7 @@ RUN mv /tmp/ingress-nginx ${OUTDIR}/var/helm-charts/
|
||||
|
||||
# Build
|
||||
|
||||
FROM golang:1.16.3 as build_context
|
||||
FROM golang:1.18.4 as build_context
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/usr/local/bin/
|
||||
@@ -40,7 +40,7 @@ RUN mv /workspace/config/watches.yaml ${OUTDIR}/var/helm-charts/
|
||||
|
||||
# Final Image
|
||||
|
||||
FROM alpine:3.11
|
||||
FROM alpine:3.11
|
||||
|
||||
COPY --from=base_os_context /out/ /
|
||||
COPY --from=build_context /out/ /
|
||||
|
||||
Reference in New Issue
Block a user