All checks were successful
ci/woodpecker/push/build Pipeline was successful
42 lines
779 B
YAML
42 lines
779 B
YAML
when:
|
|
- event: [pull_request, tag]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- develop
|
|
- 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:
|
|
- make
|
|
|
|
"Create packages":
|
|
image: deblan/fpm-packager
|
|
commands:
|
|
- VERSION=${CI_COMMIT_TAG/v//}
|
|
- ./bin/build-debs.sh "$VERSION"
|
|
- ./bin/rename-builds.sh "$VERSION"
|
|
when:
|
|
event: [tag]
|
|
|
|
"Publish":
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitnet_api_key
|
|
base_url: https://gitnet.fr
|
|
files: ./build/*
|
|
when:
|
|
event: [tag]
|