python-mylib/.woodpecker.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

clone:
git:
image: woodpeckerci/plugin-git
tags: true
2022-04-27 17:14:38 +02:00
pipeline:
test:
image: brenard/mylib:dev-master
commands:
- ./tests.sh --no-venv
2022-04-28 00:36:11 +02:00
build:
image: brenard/debian-python-deb
2022-04-27 20:20:52 +02:00
when:
event: tag
commands:
- echo "$GPG_KEY"|base64 -d|gpg --import
- ./build.sh --quiet
- rm -fr deb_dist/mylib-*
secrets: [ maintainer_name, maintainer_email, gpg_key, debian_codename ]
2022-04-28 00:36:11 +02:00
publish-dryrun:
group: publish
image: alpine
2022-04-28 00:36:11 +02:00
when:
event: tag
2022-04-28 00:36:11 +02:00
commands:
- ls dist/*
2022-05-01 00:01:38 +02:00
- ls deb_dist/*
2022-04-28 00:36:11 +02:00
publish-gitea:
group: publish
image: plugins/gitea-release
2022-04-27 20:20:52 +02:00
when:
event: tag
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.zionetrix.net
2022-08-02 01:30:25 +02:00
note: dist/release_notes.md
2022-04-27 22:57:38 +02:00
files:
- dist/*
2022-05-01 00:01:38 +02:00
- deb_dist/*.deb
checksum:
- md5
- sha512
publish-apt:
group: publish
image: brenard/aptly-publish
when:
event: tag
settings:
api_url:
from_secret: apt_api_url
api_username:
from_secret: apt_api_username
api_password:
from_secret: apt_api_password
repo_name:
from_secret: apt_repo_name
path: deb_dist
source_name: mylib