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 ==== -[![GitHub Actions](https://github.com/casbin/casbin-server/actions/workflows/default.yml/badge.svg)](https://github.com/casbin/casbin-server/actions) -[![Docker](https://img.shields.io/docker/automated/casbin/casbin-server)](https://hub.docker.com/r/casbin/casbin-server/builds/) -[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/casbin/casbin-server?label=image%20version)](https://hub.docker.com/r/casbin/casbin-server/tags) -[![Coverage Status](https://coveralls.io/repos/github/casbin/casbin-server/badge.svg?branch=master)](https://coveralls.io/github/casbin/casbin-server?branch=master) -[![Godoc](https://godoc.org/github.com/casbin/casbin-server?status.svg)](https://godoc.org/github.com/casbin/casbin-server) +

+ + semantic-release + + + docker pull casbin/casbin-server + + + GitHub Workflow Status (branch) + + + GitHub Release + + + Coverage Status + + + Docker Image Version (latest semver) + +

+ +

+ + Go Report Card + + + license + + + Discord + +

+ 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.