Skip to content

Commit

Permalink
release cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
herlon214 committed Dec 4, 2021
1 parent fe4825b commit 6893b9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
7 changes: 5 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ before:
hooks:
- go mod tidy
builds:
- env:
- binary: sqpr
env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -23,7 +24,9 @@ snapshot:
changelog:
skip: true
dockers:
- image_templates:
- goos: linux
goarch: amd64
image_templates:
- "herlon214/sonarqube-pr-issues:latest"
- "herlon214/sonarqube-pr-issues:{{ .Tag }}"
- "herlon214/sonarqube-pr-issues:v{{ .Major }}"
16 changes: 1 addition & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
################################
# Build binary
################################
FROM golang:1.17 as build
WORKDIR /app

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -o /app/sqpr ./main.go

################################
# Execute
################################
FROM alpine:3.14
COPY --from=build /app/sqpr /app/sqpr

ENTRYPOINT [ "./app/sqpr" ]
ENTRYPOINT [ "/sqpr" ]
EXPOSE 8080
CMD [ "server", "run", "--port", "8080" ]

0 comments on commit 6893b9a

Please sign in to comment.