gsquash/.drone.yaml

38 lines
769 B
YAML
Raw Normal View History

2023-12-07 20:25:11 +01:00
kind: pipeline
type: docker
name: Build and Release
steps:
2023-12-07 20:58:53 +01:00
- name: test
2023-12-07 20:52:50 +01:00
image: golang:1.21
commands:
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
2023-12-07 20:58:53 +01:00
- /bin/task test
- name: build & package
2023-12-07 20:25:11 +01:00
image: golang:1.21
commands:
2023-12-07 21:02:04 +01:00
- |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
/bin/task package
2023-12-07 20:52:50 +01:00
when:
event:
- tag
2023-12-07 20:58:53 +01:00
- name: release
2023-12-07 20:25:11 +01:00
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
2023-12-07 20:52:50 +01:00
when:
event:
- tag
2023-12-07 20:25:11 +01:00
---
kind: secret
name: gitea_api_key
get:
path: secret/synology/gitea
name: token