This commit is contained in:
parent
6cf087290a
commit
ba7df030d2
16
.drone.yaml
16
.drone.yaml
@ -2,18 +2,21 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Build and Release
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
|
||||
- task test
|
||||
- name: Build & Package
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
|
||||
- task package
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- name: Release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
@ -23,6 +26,9 @@ steps:
|
||||
repo: layla/gsquash
|
||||
files:
|
||||
- ./dist/gsquash.tar.gz
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
---
|
||||
kind: secret
|
||||
name: gitea_api_key
|
||||
|
Loading…
Reference in New Issue
Block a user