From ea7ab1e4d600f09eda361d58e49cb7621afcf178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Tue, 11 Oct 2022 20:05:26 +0200 Subject: [PATCH] Update to go 1.19 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel RĂ¼ger --- .github/workflows/ci.yaml | 2 +- CONTRIBUTING.md | 2 +- Dockerfile | 2 +- Dockerfile_iptables | 4 ++-- demo/Dockerfile | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2db4d50c..286aba9d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,7 +15,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: '1.18' + go-version: '1.19' - name: Install golangci-lint run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2 - name: checks diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 08d4c7e0..de6d2b63 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -154,7 +154,7 @@ the `$GOPATH`. To develop locally, you can follow these steps: - 1. [Install Go 1.18](https://golang.org/doc/install) + 1. [Install Go 1.19](https://golang.org/doc/install) 2. Checkout your feature branch and `cd` into it. 3. To build all Go files and install them under `bin`, run `make bin` 4. To run all Go unit tests, run `make test-unit` diff --git a/Dockerfile b/Dockerfile index 70119912..e2567d6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:experimental -FROM golang:1.18.0-alpine3.15 as dev +FROM golang:1.19.2-alpine3.16 as dev RUN apk add --no-cache git ca-certificates make RUN adduser -D appuser COPY . /src/ diff --git a/Dockerfile_iptables b/Dockerfile_iptables index 1d56af99..01e236b7 100644 --- a/Dockerfile_iptables +++ b/Dockerfile_iptables @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:experimental -FROM golang:1.18.0-alpine3.15 as dev +FROM golang:1.19.2-alpine3.16 as dev RUN apk add --no-cache git make RUN adduser -D appuser COPY . /src/ @@ -16,4 +16,4 @@ FROM alpine:3.16.2 RUN apk add --no-cache iptables # Add kube-vip binary COPY --from=dev /src/kube-vip / -ENTRYPOINT ["/kube-vip"] \ No newline at end of file +ENTRYPOINT ["/kube-vip"] diff --git a/demo/Dockerfile b/demo/Dockerfile index a11a5074..96e85ad6 100644 --- a/demo/Dockerfile +++ b/demo/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:experimental -FROM golang:1.13-alpine as dev +FROM golang:1.19-alpine as dev RUN apk add --no-cache git ca-certificates RUN adduser -D appuser COPY main.go /src/ @@ -13,4 +13,4 @@ RUN --mount=type=cache,sharing=locked,id=gomod,target=/go/pkg/mod/cache \ FROM scratch COPY --from=dev /src/demo / -CMD ["/demo"] \ No newline at end of file +CMD ["/demo"]