From 9fba09f19cd16843d91cc06a86ee5d2afcda4f70 Mon Sep 17 00:00:00 2001 From: Nova Kwok Date: Thu, 2 Feb 2023 18:03:41 +0800 Subject: [PATCH] Let's try Go 1.20 (#167) * Let's try Go 1.20 * Setup-go v3 * Maybe we should quote it --- .github/workflows/CI.yaml | 8 ++++---- .github/workflows/release_binary.yaml | 4 ++-- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index c724384..9c1ef04 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -16,12 +16,12 @@ jobs: image: centos:centos7 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: Setup necessary packages run: | @@ -48,7 +48,7 @@ jobs: submodules: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Cache Docker layers uses: actions/cache@v2 diff --git a/.github/workflows/release_binary.yaml b/.github/workflows/release_binary.yaml index e2cccfc..cbcd48b 100644 --- a/.github/workflows/release_binary.yaml +++ b/.github/workflows/release_binary.yaml @@ -21,9 +21,9 @@ jobs: uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: Setup necessary packages run: | diff --git a/Dockerfile b/Dockerfile index 9d7ff23..5b619ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine as builder +FROM golang:1.20-alpine as builder ARG IMG_PATH=/opt/pics ARG EXHAUST_PATH=/opt/exhaust diff --git a/go.mod b/go.mod index cb3dd13..d0eb00e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module webp_server_go -go 1.19 +go 1.20 require ( github.com/Kagami/go-avif v0.1.0