This commit is contained in:
commit
91e551f6d5
12 changed files with 388 additions and 0 deletions
32
.woodpecker/build.yml
Normal file
32
.woodpecker/build.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
when:
|
||||
- event: [pull_request, tag]
|
||||
- event: push
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
- feature/*
|
||||
- release/*
|
||||
- renovate/*
|
||||
|
||||
variables:
|
||||
- &golang_image 'golang:1.22'
|
||||
|
||||
steps:
|
||||
"Add vendor":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go mod vendor
|
||||
|
||||
"Run build":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go build
|
||||
|
||||
"Publish":
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitnet_api_key
|
||||
base_url: https://gitnet.fr
|
||||
files: ./expiration-check
|
||||
when:
|
||||
event: [tag]
|
||||
Loading…
Add table
Add a link
Reference in a new issue