This commit is contained in:
parent
9eaf69780a
commit
3f48877472
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dist/
|
||||||
|
gitea_token
|
37
.goreleaser.yaml
Normal file
37
.goreleaser.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||||
|
# Make sure to check the documentation at https://goreleaser.com
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
# You may remove this if you don't use go modules.
|
||||||
|
- go mod tidy
|
||||||
|
# you may remove this if you don't need go generate
|
||||||
|
- go generate ./...
|
||||||
|
builds:
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
- darwin
|
||||||
|
archives:
|
||||||
|
- replacements:
|
||||||
|
darwin: Darwin
|
||||||
|
linux: Linux
|
||||||
|
windows: Windows
|
||||||
|
386: i386
|
||||||
|
amd64: x86_64
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ incpatch .Version }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
|
gitea_urls:
|
||||||
|
api: https://git.t-juice.club/api/v1/
|
||||||
|
download: https://git.t-juice.club
|
||||||
|
env_files:
|
||||||
|
gitea_token: gitea_token
|
@ -7,7 +7,7 @@ pipeline:
|
|||||||
when:
|
when:
|
||||||
event: [pull_request, push]
|
event: [pull_request, push]
|
||||||
|
|
||||||
release-latest:
|
image-latest:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.t-juice.club/peckertest
|
repo: registry.t-juice.club/peckertest
|
||||||
@ -22,7 +22,7 @@ pipeline:
|
|||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
release-tagged:
|
image-tagged:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.t-juice.club/peckertest
|
repo: registry.t-juice.club/peckertest
|
||||||
@ -34,3 +34,13 @@ pipeline:
|
|||||||
- "${CI_COMMIT_TAG}"
|
- "${CI_COMMIT_TAG}"
|
||||||
when:
|
when:
|
||||||
event: [tag]
|
event: [tag]
|
||||||
|
|
||||||
|
goreleaser-tagged:
|
||||||
|
image: goreleaser/goreleaser
|
||||||
|
commands:
|
||||||
|
- echo "$GITEA_TOKEN" > gitea_token
|
||||||
|
- goreleaser release
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: tag
|
||||||
|
secrets: [ssh_key]
|
||||||
|
Loading…
Reference in New Issue
Block a user