Skip to content

Commit

Permalink
fix: enable linux, multiarch-builds
Browse files Browse the repository at this point in the history
Signed-off-by: Aaqa Ishtyaq <[email protected]>
  • Loading branch information
aaqaishtyaq committed Sep 5, 2022
1 parent 1ed3696 commit 9999472
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ builds:
binary: "roxxy"
goos:
- darwin
# - linux
- linux
goarch:
- amd64
# - arm64
- arm64
ldflags:
- -s -w -X "github.com/aaqaishtyaq/roxxy/cmd.Version={{ .Tag }}"
archives:
Expand All @@ -32,7 +32,7 @@ changelog:
dockers:
- image_templates:
- 'ghcr.io/aaqaishtyaq/roxxy:{{ .Tag }}-amd64'
dockerfile: Dockerfile.release
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -44,7 +44,7 @@ dockers:
- "--platform=linux/amd64"
- image_templates:
- 'ghcr.io/aaqaishtyaq/roxxy:{{ .Tag }}-arm64'
dockerfile: Dockerfile.release
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
Expand Down
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM golang:1.17 as builder
WORKDIR /app
COPY . .
RUN go build

FROM alpine:latest
COPY --from=builder /app/roxxy /bin/roxxy

WORKDIR /app
COPY roxxy .
EXPOSE 8080
ENTRYPOINT [ "/bin/roxxy" ]

CMD ["./roxxy"]
7 changes: 0 additions & 7 deletions Dockerfile.release

This file was deleted.

0 comments on commit 9999472

Please sign in to comment.