-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement dual-write workflows with go-workflows
- Loading branch information
1 parent
49c5869
commit 332e60f
Showing
15 changed files
with
492 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM --platform=$BUILDPLATFORM golang:1.20-alpine3.18 AS builder | ||
FROM --platform=$BUILDPLATFORM golang:1.21.0 AS builder | ||
ARG TARGETOS TARGETARCH | ||
|
||
WORKDIR /go/src/spicedb-kubeapi-proxy | ||
|
||
COPY . /go/src/spicedb-kubeapi-proxy | ||
|
||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build ./cmd/spicedb-kubeapi-proxy | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build ./cmd/spicedb-kubeapi-proxy | ||
|
||
FROM cgr.dev/chainguard/static | ||
FROM cgr.dev/chainguard/static:latest | ||
COPY --from=builder /go/src/spicedb-kubeapi-proxy/spicedb-kubeapi-proxy /usr/local/bin/ | ||
ENTRYPOINT ["spicedb-kubeapi-proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.