From 83f459b1adfa4d11be0cec433e8edf6ee9366702 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Mon, 27 Feb 2023 22:39:47 +0100 Subject: [PATCH] build: update Go to 1.20 This updates Go used for builds to 1.20, including an update of Alpine to 3.17. Signed-off-by: Hidde Beydals --- .github/workflows/cli.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- Dockerfile | 2 +- Dockerfile.alpine | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index ccc8cac7d..5042eb61b 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -28,10 +28,10 @@ jobs: steps: - name: Install dependencies run: sudo apt-get update && sudo apt-get install git -y - - name: Set up Go 1.19 - uses: actions/setup-go@v2 + - name: Set up Go 1.20 + uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0db9ccf8f..aa5c1202a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,10 @@ jobs: run: sudo apt-get update && sudo apt-get install git ruby rpm -y - name: Install fpm run: gem install fpm || sudo gem install fpm - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: '1.20' id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/Dockerfile b/Dockerfile index c7c019550..d0c58a36f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 +FROM golang:1.20 COPY . /go/src/go.mozilla.org/sops WORKDIR /go/src/go.mozilla.org/sops diff --git a/Dockerfile.alpine b/Dockerfile.alpine index a5c66ddf2..de1ab4631 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.16 AS builder +FROM golang:1.20-alpine3.17 AS builder RUN apk --no-cache add make @@ -8,7 +8,7 @@ WORKDIR /go/src/go.mozilla.org/sops RUN CGO_ENABLED=1 make install -FROM alpine:3.16 +FROM alpine:3.17 RUN apk --no-cache add \ vim ca-certificates