-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): update
goreleaser
job (#70)
* fix: use `SERVICE_PORT` instead of `GO_PORT` * chore(typos): ignore short words * ci(deps): update pre-commit hooks * ci(github): update `goreleaser` job * ci(pre-commit): fix mixed line endings * fix(deps): update module `github.com/labstack/echo/v4` to `v4.12.0`
- Loading branch information
Showing
10 changed files
with
39 additions
and
31 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
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
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,2 +1,7 @@ | ||
[files] | ||
extend-exclude = ["CHANGELOG.md"] | ||
|
||
[default] | ||
extend-ignore-re = [ | ||
"[a-z]{0,3}", # ignore short words | ||
] |
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 |
---|---|---|
|
@@ -15,12 +15,12 @@ RUN --mount=type=cache,target=${GOCACHE} \ | |
FROM gcr.io/distroless/static-debian12:latest@sha256:41972110a1c1a5c0b6adb283e8aa092c43c31f7c5d79b8656fbffff2c3e61f05 AS runtime | ||
LABEL maintainer "DeadNews <[email protected]>" | ||
|
||
ENV GO_PORT=1271 | ||
ENV SERVICE_PORT=8000 | ||
|
||
COPY --from=go-builder /app/dist/deadnews-template-go /usr/local/bin/deadnews-template-go | ||
|
||
USER nonroot:nonroot | ||
EXPOSE ${GO_PORT} | ||
EXPOSE ${SERVICE_PORT} | ||
HEALTHCHECK NONE | ||
|
||
CMD ["deadnews-template-go"] |
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
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
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
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,8 +1,7 @@ | ||
version: "3" | ||
services: | ||
web: | ||
build: . | ||
ports: | ||
- 127.0.0.1:${GO_PORT:-1271}:${GO_PORT:-1271} | ||
- 127.0.0.1:${SERVICE_PORT:-8000}:${SERVICE_PORT:-8000} | ||
environment: | ||
GO_PORT: ${GO_PORT:-1271} | ||
SERVICE_PORT: ${SERVICE_PORT:-8000} |
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
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