From c076979b19d85dbe1448cbffbdf86aca18e4c6d8 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger <70865+arschles@users.noreply.github.com> Date: Tue, 14 Dec 2021 23:25:15 -0800 Subject: [PATCH] Upgrading images to use Go 1.17.2 (#349) --- .devcontainer/Dockerfile | 5 ++--- .github/workflows/tests.yaml | 2 +- interceptor/Dockerfile | 2 +- operator/Dockerfile | 2 +- scaler/Dockerfile | 3 +-- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index fbca7fb0..89a52f14 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,5 @@ -# [Choice] Go version: 1, 1.16, 1.15 -ARG VARIANT=1.17 -FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT} +ARG GO_VERSION=1.17 +FROM mcr.microsoft.com/vscode/devcontainers/go:0-${GO_VERSION} # install mage RUN git clone https://github.com/magefile/mage && \ diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 88004ed8..6680ccb0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -15,6 +15,6 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.16.x + go-version: 1.17.2 - name: Test run: go test ./... diff --git a/interceptor/Dockerfile b/interceptor/Dockerfile index 649a830b..bf8ac1e6 100644 --- a/interceptor/Dockerfile +++ b/interceptor/Dockerfile @@ -1,6 +1,6 @@ # adapted from Athens # https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile -ARG GOLANG_VERSION=1.16 +ARG GOLANG_VERSION=1.17.2 ARG GOARCH=amd64 ARG GOOS=linux diff --git a/operator/Dockerfile b/operator/Dockerfile index 957e7279..6a1f08ac 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -1,6 +1,6 @@ # adapted from Athens # https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile -ARG GOLANG_VERSION=1.16 +ARG GOLANG_VERSION=1.17.2 ARG GOARCH=amd64 ARG GOOS=linux diff --git a/scaler/Dockerfile b/scaler/Dockerfile index e4d390ca..7f2ff929 100644 --- a/scaler/Dockerfile +++ b/scaler/Dockerfile @@ -1,10 +1,9 @@ # taken from Athens # https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile -ARG GOLANG_VERSION=1.16 +ARG GOLANG_VERSION=1.17.2 ARG GOARCH=amd64 ARG GOOS=linux - FROM golang:${GOLANG_VERSION}-alpine AS builder WORKDIR $GOPATH/src/github.com/kedacore/http-add-on