Upgrade to Go 1.21

This commit is contained in:
harryzcy 2023-08-08 22:31:22 -05:00
parent db662b3690
commit 38da98bcbf
No known key found for this signature in database
GPG key ID: E3C2287691E40E35
5 changed files with 8 additions and 8 deletions

View file

@ -17,7 +17,7 @@ jobs:
fetch-depth: 0 # all history for all branches and tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.1'
go-version: '>=1.21.0'
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:
@ -35,9 +35,9 @@ jobs:
- name: goreleaser
uses: https://github.com/goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: latest
args: release --nightly
distribution: goreleaser-pro
version: latest
args: release --nightly
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}

View file

@ -18,7 +18,7 @@ jobs:
fetch-depth: 0 # all history for all branches and tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.1'
go-version: '>=1.21.0'
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:

View file

@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.1'
go-version: '>=1.21.0'
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:

View file

@ -1,4 +1,4 @@
FROM golang:1.20-alpine3.18 as builder
FROM golang:1.21-alpine3.18 as builder
# Do not remove `git` here, it is required for getting runner version when executing `make build`
RUN apk add --no-cache make git

2
go.mod
View file

@ -1,6 +1,6 @@
module gitea.com/gitea/act_runner
go 1.20
go 1.21
require (
code.gitea.io/actions-proto-go v0.3.0