chore(deps): update Go to 1.20 (#726)

* chore(github): Update to go 1.20

* chore(go): enable language functionality in 1.20

* build: update go versions and rename dockerfile.ci
This commit is contained in:
Kyle Sanderson 2023-02-28 14:29:51 -08:00 committed by GitHub
parent ca196f0bf1
commit b2d93d50c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 8 deletions

View file

@ -6,7 +6,7 @@ node_modules/
config.toml
.goreleaser.yml
Dockerfile
Dockerfile.ci
ci.Dockerfile
docker-compose.yml
README.md
bin

View file

@ -58,10 +58,11 @@ jobs:
name: web-build
path: web/build
# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
go-version: '1.20.1'
cache: true
- name: Run GoReleaser build
@ -96,10 +97,11 @@ jobs:
name: web-build
path: web/build
# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
go-version: '1.20.1'
cache: true
- name: Run GoReleaser build and publish tags
@ -157,7 +159,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.ci
file: ./ci.Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: ${{ github.repository_owner == 'autobrr' }}
tags: ${{ steps.meta.outputs.tags }}
@ -167,4 +169,4 @@ jobs:
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ github.event.pull_request.head.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}

View file

@ -8,7 +8,7 @@ COPY web .
RUN yarn build
# build app
FROM golang:1.19-alpine3.16 AS app-builder
FROM golang:1.20-alpine3.16 AS app-builder
ARG VERSION=dev
ARG REVISION=dev

View file

@ -1,5 +1,5 @@
# build app
FROM golang:1.19-alpine3.16 AS app-builder
FROM golang:1.20-alpine3.16 AS app-builder
ARG VERSION=dev
ARG REVISION=dev

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/autobrr/autobrr
go 1.19
go 1.20
require (
github.com/Masterminds/sprig/v3 v3.2.2