frontpage/.woodpecker.yml

50 lines
1.0 KiB
YAML

platform: linux/arm64
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
pipeline:
gitleaks:
image: registry.monotremata.xyz/gitleaks
pull: true
commands:
- gitleaks --source . --verbose --redact detect
build:
image: registry.monotremata.xyz/static-page-builder
pull: true
commands:
- make www
- make onion
publish:
image: registry.monotremata.xyz/rsync
pull: true
settings:
host: caladan
user: woodpecker
key:
from_secret: ssh_key
key_cert:
from_secret: ssh_key_cert
known_hosts:
from_secret: known_hosts
sources: ["html/www", "html/onion"]
target: /srv/sites/frontpage
args: --recursive --human-readable --verbose --delete
notify:
image: registry.monotremata.xyz/xmpp-ci
pull: true
settings:
username: "woodpecker@monotremata.xyz"
recipient: "rilla@monotremata.xyz"
password:
from_secret: xmpp_password
when:
status: [success, failure]