You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
730 B
33 lines
730 B
3 years ago
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: Build
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go get ./..
|
||
|
- go vet -v
|
||
|
- env
|
||
|
- GOOS="linux" go build -ldflags="-w -s" -o BackgroundDaemon-Linux
|
||
|
- GOOS="windows" go build -ldflags="-w -s" -o BackgroundDaemon-Win.exe
|
||
|
- GOOS="darwin" go build -ldflags="-w -s" -o BackgroundDaemon-macOS
|
||
|
- name: gitea_release
|
||
|
image: plugins/gitea-release
|
||
|
settings:
|
||
|
base_url: https://git.nightmare.haus
|
||
|
api_key:
|
||
|
from_secret: gitea_token
|
||
|
files:
|
||
|
- ./BackgroundDaemon-Linux
|
||
|
- ./BackgroundDaemon-Win.exe
|
||
|
- ./BackgroundDaemon-macOS
|
||
|
checksum:
|
||
|
- md5
|
||
|
- sha1
|
||
|
- sha256
|
||
|
- sha512
|
||
|
- adler32
|
||
|
- crc32
|
||
|
when:
|
||
|
event: [tag]
|