Update to go 1.19

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger
2022-10-11 20:05:26 +02:00
parent c9a4d584b4
commit ea7ab1e4d6
5 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@@ -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"]
ENTRYPOINT ["/kube-vip"]

View File

@@ -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"]
CMD ["/demo"]