Skip to content

Commit

Permalink
feat: fix multi build
Browse files Browse the repository at this point in the history
Signed-off-by: zufardhiyaulhaq <[email protected]>
  • Loading branch information
zufardhiyaulhaq committed Jun 10, 2024
1 parent 57aed01 commit 170837f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
provenance: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#################
# Builder image
#################
FROM golang:1.22-bullseye AS builder
FROM --platform=$BUILDPLATFORM golang:1.22-bullseye AS builder

WORKDIR /app
COPY . .
Expand All @@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 go build main.go
#################
# Final image
#################
FROM gcr.io/distroless/base
FROM --platform=$BUILDPLATFORM gcr.io/distroless/base

COPY --from=builder /app/main /

Expand Down

0 comments on commit 170837f

Please sign in to comment.