Skip to content

Commit

Permalink
style: Use buildx and add extra files in goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattevans committed Dec 11, 2024
1 parent de7b8ff commit ce327fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ dockers:
- "ethpandaops/contributoor-test:{{ .Version }}"
- "ethpandaops/contributoor-test:latest"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- go.mod
- go.sum

archives:
- format: tar.gz
Expand Down
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM golang:1.23-alpine AS builder

WORKDIR /app
COPY . .
RUN go build -o sentry ./cmd/sentry

FROM alpine:latest

COPY --from=builder /app/sentry /usr/local/bin/
COPY sentry /usr/local/bin/
RUN mkdir -p /config
ENTRYPOINT ["sentry"]

0 comments on commit ce327fd

Please sign in to comment.