diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 1b8f65f..61e913d 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -89,6 +89,6 @@ jobs: if: github.repository == 'casbin/casbin-server' && github.event_name == 'push' && steps.should_push.outputs.push=='true' with: target: STANDARD - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: casbin/casbin-server:${{steps.get-current-tag.outputs.tag }},casbin/casbin-server:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e845b87..4e019b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,12 @@ RUN curl -LjO https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.1 rm v3.17.3.zip # Go environment variable to enable Go modules +ARG TARGETOS +ARG TARGETARCH ENV GO111MODULE=on \ CGO_ENABLED=0 \ - GOOS=linux \ - GOARCH=amd64 + GOOS=${TARGETOS} \ + GOARCH=${TARGETARCH} # Download dependencies RUN go mod download diff --git a/README.md b/README.md index eb9950e..bb5dd5f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,39 @@ Casbin Server ==== -[](https://github.com/casbin/casbin-server/actions) -[](https://hub.docker.com/r/casbin/casbin-server/builds/) -[](https://hub.docker.com/r/casbin/casbin-server/tags) -[](https://coveralls.io/github/casbin/casbin-server?branch=master) -[](https://godoc.org/github.com/casbin/casbin-server) +
+ + + Casbin Server is the ``Access Control as a Service (ACaaS)`` solution based on [Casbin](https://github.com/casbin/casbin). It provides [gRPC](https://grpc.io/) interface for Casbin authorization.