Browse Source

feat: Update to Go 1.20

master
Yang Luo 2 years ago
parent
commit
5916468ba7
3 changed files with 6 additions and 6 deletions
  1. +4
    -4
      .github/workflows/build.yml
  2. +1
    -1
      Dockerfile
  3. +1
    -1
      go.mod

+ 4
- 4
.github/workflows/build.yml View File

@@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.19.0'
go-version: '^1.20.0'
cache-dependency-path: ./go.mod
- name: Tests
run: |
@@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.19.0'
go-version: '^1.20.0'
cache-dependency-path: ./go.mod
- run: go version
- name: Build
@@ -65,7 +65,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.19.0'
go-version: '^1.20.0'
cache: false

# gen a dummy config file
@@ -149,6 +149,6 @@ jobs:
with:
context: .
target: STANDARD
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: casbin/casibase:${{steps.get-current-tag.outputs.tag }},casbin/casibase:latest

+ 1
- 1
Dockerfile View File

@@ -1,4 +1,4 @@
FROM golang:1.19 AS BACK
FROM golang:1.20 AS BACK
WORKDIR /go/src/casibase
COPY . .
RUN go build -o server ./main.go


+ 1
- 1
go.mod View File

@@ -1,6 +1,6 @@
module github.com/casbin/casibase

go 1.19
go 1.20

require (
github.com/ConnectAI-E/go-minimax v0.0.1


Loading…
Cancel
Save