mirror of
https://github.com/moul/sshportal.git
synced 2024-11-10 09:12:49 +08:00
chore: setup goreleaser
This commit is contained in:
parent
fc5c342e40
commit
9912c3deba
3 changed files with 41 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,7 @@
|
||||||
|
dist/
|
||||||
|
*~
|
||||||
|
*#
|
||||||
|
.*#
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/log/
|
/log/
|
||||||
/sshportal
|
/sshportal
|
||||||
|
|
29
.goreleaser.yml
Normal file
29
.goreleaser.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
builds:
|
||||||
|
-
|
||||||
|
goos: [linux, darwin]
|
||||||
|
goarch: [386, amd64, arm, arm64]
|
||||||
|
ldflags:
|
||||||
|
- -s -w -X main.GitSha={{.ShortCommit}} -X main.GitBranch=master -X main.GitTag={{.Version}}
|
||||||
|
archives:
|
||||||
|
- wrap_in_directory: true
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ .Tag }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
|
brews:
|
||||||
|
-
|
||||||
|
name: sshportal
|
||||||
|
github:
|
||||||
|
owner: moul
|
||||||
|
name: homebrew-moul
|
||||||
|
commit_author:
|
||||||
|
name: moul-bot
|
||||||
|
email: "m+bot@42.am"
|
||||||
|
homepage: https://manfred.life/sshportal
|
||||||
|
description: "Simple, fun and transparent SSH (and telnet) bastion"
|
8
Makefile
8
Makefile
|
@ -48,3 +48,11 @@ doc:
|
||||||
dot -Tpng ./.assets/overview.dot > ./.assets/overview.png
|
dot -Tpng ./.assets/overview.dot > ./.assets/overview.png
|
||||||
dot -Tpng ./.assets/cluster-mysql.dot > ./.assets/cluster-mysql.png
|
dot -Tpng ./.assets/cluster-mysql.dot > ./.assets/cluster-mysql.png
|
||||||
dot -Tpng ./.assets/flow-diagram.dot > ./.assets/flow-diagram.png
|
dot -Tpng ./.assets/flow-diagram.dot > ./.assets/flow-diagram.png
|
||||||
|
|
||||||
|
.PHONY: goreleaser
|
||||||
|
goreleaser:
|
||||||
|
GORELEASER_GITHUB_TOKEN=$(GORELEASER_GITHUB_TOKEN) GITHUB_TOKEN=$(GITHUB_TOKEN) goreleaser --rm-dist
|
||||||
|
|
||||||
|
.PHONY: goreleaser-dry-run
|
||||||
|
goreleaser-dry-run:
|
||||||
|
goreleaser --snapshot --skip-publish --rm-dist
|
||||||
|
|
Loading…
Reference in a new issue