Skip to content

Commit

Permalink
ci: publish oomd on release page
Browse files Browse the repository at this point in the history
  • Loading branch information
lianxmfor committed Nov 29, 2021
1 parent cfc07ee commit 63455ae
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
with:
distribution: goreleaser
version: latest
workdir: oomctl
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ coverage.out
__pycache__/
*.protoset
venv

dist/
40 changes: 28 additions & 12 deletions oomctl/.goreleaser.yml → .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
project_name: oomctl
release:
prerelease: auto
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- main: ./oomctl
id: "oomctl"
binary: oomctl
env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -18,27 +20,41 @@ builds:
-X github.com/oom-ai/oomstore/version.Version={{.Version}}
-X github.com/oom-ai/oomstore/version.Commit={{.Commit}}
-X github.com/oom-ai/oomstore/version.Built={{.CommitDate}}
- main: ./oomd
id: "oomd"
binary: oomd
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- >
-s -w
-X github.com/oom-ai/oomstore/version.Version={{.Version}}
-X github.com/oom-ai/oomstore/version.Commit={{.Commit}}
-X github.com/oom-ai/oomstore/version.Built={{.CommitDate}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- none*
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^Merge'
- '^Update'
- '^docs[:(]'
- '^test[:(]'
- '^chore[:(]'
- '^refactor[:(]'
- '^ci[:(]'
- "^Merge"
- "^Update"
- "^docs[:(]"
- "^test[:(]"
- "^chore[:(]"
- "^refactor[:(]"
- "^ci[:(]"

0 comments on commit 63455ae

Please sign in to comment.