From 5916468ba761f697257ddcad1a52647cf824bb52 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Fri, 29 Sep 2023 22:22:27 +0800 Subject: [PATCH] feat: Update to Go 1.20 --- .github/workflows/build.yml | 8 ++++---- Dockerfile | 2 +- go.mod | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be14f34..5b49c8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6568191..4949126 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/go.mod b/go.mod index 7885969..7ec2820 100644 --- a/go.mod +++ b/go.mod @@ -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