38 lines
769 B
YAML
38 lines
769 B
YAML
|
|
kind: pipeline
|
|
type: docker
|
|
name: Build and Release
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.21
|
|
commands:
|
|
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
|
|
- /bin/task test
|
|
- name: build & package
|
|
image: golang:1.21
|
|
commands:
|
|
- |
|
|
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
|
|
/bin/task package
|
|
when:
|
|
event:
|
|
- tag
|
|
- name: release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
base_url: https://gitea.layla.gg
|
|
api_key:
|
|
from_secret: gitea_api_key
|
|
repo: layla/gsquash
|
|
files:
|
|
- ./dist/gsquash.tar.gz
|
|
when:
|
|
event:
|
|
- tag
|
|
---
|
|
kind: secret
|
|
name: gitea_api_key
|
|
get:
|
|
path: secret/synology/gitea
|
|
name: token |