mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
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:
parent
ca196f0bf1
commit
b2d93d50c5
5 changed files with 10 additions and 8 deletions
|
@ -6,7 +6,7 @@ node_modules/
|
|||
config.toml
|
||||
.goreleaser.yml
|
||||
Dockerfile
|
||||
Dockerfile.ci
|
||||
ci.Dockerfile
|
||||
docker-compose.yml
|
||||
README.md
|
||||
bin
|
||||
|
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
2
go.mod
|
@ -1,6 +1,6 @@
|
|||
module github.com/autobrr/autobrr
|
||||
|
||||
go 1.19
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/Masterminds/sprig/v3 v3.2.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue