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