67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
tags: true
|
|
|
|
steps:
|
|
tests:
|
|
image: brenard/python-pre-commit:latest
|
|
commands:
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-requests < /dev/null > /dev/null
|
|
- pre-commit run --all-files
|
|
|
|
build:
|
|
image: brenard/debian-python-deb
|
|
when:
|
|
event: tag
|
|
depends_on: [tests]
|
|
commands:
|
|
- echo "$GPG_KEY"|base64 -d|gpg --import
|
|
- ./build.sh --quiet
|
|
secrets: [maintainer_name, maintainer_email, gpg_key, debian_codename]
|
|
|
|
publish-dryrun:
|
|
group: publish
|
|
image: alpine
|
|
when:
|
|
event: tag
|
|
depends_on: [build]
|
|
commands:
|
|
- ls dist/* dist/check-woodpecker-upgrade-*/check_woodpecker_upgrade
|
|
|
|
publish-gitea:
|
|
group: publish
|
|
image: plugins/gitea-release
|
|
when:
|
|
event: tag
|
|
depends_on: [build]
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_token
|
|
base_url: https://gitea.zionetrix.net
|
|
note: dist/release_notes.md
|
|
files:
|
|
- dist/check-woodpecker-upgrade-*/check_woodpecker_upgrade
|
|
- dist/*.deb
|
|
checksum:
|
|
- md5
|
|
- sha512
|
|
|
|
publish-apt:
|
|
group: publish
|
|
image: brenard/aptly-publish
|
|
when:
|
|
event: tag
|
|
depends_on: [build]
|
|
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: check-woodpecker-upgrade
|