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.
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build
|
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
NASA_TOKEN:
|
|
|
|
from_secret: nasa_api
|
|
|
|
commands:
|
|
|
|
- go get github.com/reujab/wallpaper
|
|
|
|
- go vet -v
|
|
|
|
- GOOS="linux" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Linux
|
|
|
|
- GOOS="windows" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Win.exe
|
|
|
|
- GOOS="darwin" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-macOS
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.nightmare.haus
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
|
|
|
- ./SpaceFace-Linux
|
|
|
|
- ./SpaceFace-Win.exe
|
|
|
|
- ./SpaceFace-macOS
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
- adler32
|
|
|
|
- crc32
|
|
|
|
when:
|
|
|
|
event: [tag]
|