2022-04-27 23:04:17 +02:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
tags: true
|
|
|
|
|
2022-04-27 17:14:38 +02:00
|
|
|
pipeline:
|
2022-04-27 17:12:00 +02:00
|
|
|
test:
|
2023-01-16 13:24:19 +01:00
|
|
|
image: brenard/mylib:dev-master
|
2022-04-27 17:12:00 +02:00
|
|
|
commands:
|
2023-01-16 13:24:19 +01:00
|
|
|
- ./tests.sh --no-venv
|
2022-04-28 00:36:11 +02:00
|
|
|
|
2022-04-27 17:12:00 +02:00
|
|
|
build:
|
2022-04-30 22:59:19 +02:00
|
|
|
image: brenard/debian-python-deb
|
2022-04-27 20:20:52 +02:00
|
|
|
when:
|
2022-04-28 00:45:26 +02:00
|
|
|
event: tag
|
2022-04-27 17:12:00 +02:00
|
|
|
commands:
|
2022-04-30 22:59:19 +02:00
|
|
|
- echo "$GPG_KEY"|base64 -d|gpg --import
|
2022-04-27 18:56:03 +02:00
|
|
|
- ./build.sh --quiet
|
2022-04-27 23:59:23 +02:00
|
|
|
- rm -fr deb_dist/mylib-*
|
2024-03-15 09:52:23 +01:00
|
|
|
secrets: [maintainer_name, maintainer_email, gpg_key, debian_codename]
|
2022-04-28 00:36:11 +02:00
|
|
|
|
|
|
|
publish-dryrun:
|
2022-04-30 22:59:19 +02:00
|
|
|
group: publish
|
|
|
|
image: alpine
|
2022-04-28 00:36:11 +02:00
|
|
|
when:
|
2022-04-28 00:45:26 +02:00
|
|
|
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
|
|
|
|
2022-04-30 22:59:19 +02:00
|
|
|
publish-gitea:
|
|
|
|
group: publish
|
2022-04-27 17:12:00 +02:00
|
|
|
image: plugins/gitea-release
|
2022-04-27 20:20:52 +02:00
|
|
|
when:
|
2022-04-28 00:45:26 +02:00
|
|
|
event: tag
|
2022-04-27 17:12:00 +02:00
|
|
|
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
|
2022-04-27 17:12:00 +02:00
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha512
|
2022-04-30 22:59:19 +02:00
|
|
|
|
|
|
|
publish-apt:
|
|
|
|
group: publish
|
2022-08-02 01:33:52 +02:00
|
|
|
image: brenard/aptly-publish
|
2022-04-30 22:59:19 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2022-08-02 01:33:52 +02:00
|
|
|
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
|
2022-08-02 01:42:04 +02:00
|
|
|
path: deb_dist
|
2022-08-02 01:33:52 +02:00
|
|
|
source_name: mylib
|