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:
失眠是真滴难受
2022-07-21 18:56:52 +08:00
committed by GitHub
parent 1b07470611
commit 111fc69ab1
4 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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/ /

View File

@@ -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/ /