expiration-check/.woodpecker/build.yml
Simon Vieille 262980c36e
add debian packaging
rename builds to include the version
2024-07-24 11:38:33 +02:00

41 lines
763 B
YAML

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:
- 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]