Skip to content

Commit

Permalink
chore: go1.21, docker base debian12
Browse files Browse the repository at this point in the history
  • Loading branch information
lenye committed Oct 19, 2023
1 parent 5a0072b commit d194d78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build Binaries with GoReleaser
on:
push:
tags:
- "v*.*.*" # triggers only if push new tag version, like `v0.1.0`
- "v*.*.*"

env:
GO_VERSION: "1.20"
GO_VERSION: "1.21"

jobs:

Expand Down
7 changes: 7 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ builds:
- -X github.com/lenye/pmsg/pkg/version.Version={{.Version}}
- -X github.com/lenye/pmsg/pkg/version.BuildCommit={{.ShortCommit}}
- -X github.com/lenye/pmsg/pkg/version.BuildTime={{.CommitDate}}
- -extldflags
- -static
flags:
- -trimpath
goos:
Expand Down Expand Up @@ -70,6 +72,11 @@ changelog:
- '^ci:'


release:
draft: true
replace_existing_draft: true


dockers:
- image_templates:
- "ghcr.io/lenye/{{ .ProjectName }}:{{ .Tag }}-amd64"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM gcr.io/distroless/static-debian11
FROM gcr.io/distroless/static-debian12
COPY pmsg /
ENTRYPOINT ["/pmsg"]

0 comments on commit d194d78

Please sign in to comment.