gitdch/.woodpecker.yml

71 lines
1.4 KiB
YAML
Raw Permalink Normal View History

clone:
git:
image: woodpeckerci/plugin-git
tags: true
2022-04-17 00:05:29 +02:00
pipeline:
test-pylint:
group: test
image: pipelinecomponents/pylint
2022-04-17 00:05:29 +02:00
commands:
- pip install GitPython --quiet
- pylint gitdch
test-flake8:
group: test
image: pipelinecomponents/flake8
commands:
- flake8 gitdch
build:
image: brenard/debian-python-deb
when:
event: tag
commands:
- echo "$GPG_KEY"|base64 -d|gpg --import
- ./build.sh --quiet
- rm -fr dist/gitdch-*
secrets: [ maintainer_name, maintainer_email, gpg_key, debian_codename ]
publish-dryrun:
group: publish
image: alpine
when:
event: tag
commands:
- ls dist/*
publish-gitea:
group: publish
image: plugins/gitea-release
when:
event: tag
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.zionetrix.net
2022-08-01 19:52:29 +02:00
note: dist/release_notes.md
files:
- gitdch
- 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: dist
source_name: gitdch