chatwire-web-pipeline/.woodpecker/deploy.yaml
Oliver Traber eb87bc6db0
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/manual/deploy Pipeline was successful
Use Cinny instead of Element as the web client
2025-01-17 23:28:30 +01:00

31 lines
959 B
YAML

when:
- branch: main
event: [ push, manual, cron ]
steps:
download:
image: debian:bookworm
commands:
# Install prerequisites
- apt update
- apt install -y wget
# Download and extract
# renovate: datasource=github-releases depName=cinnyapp/cinny versioning=semver-coerced
- export CINNY_VERSION=v4.2.3
- wget -O cinny.tar.gz https://github.com/cinnyapp/cinny/releases/download/$CINNY_VERSION/cinny-$CINNY_VERSION.tar.gz
- mkdir payload
- tar -xzf cinny.tar.gz --directory payload --strip-components 1
# Copy customizsations
- cp customization/config.json payload/
publish:
image: minio/mc
commands:
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
- mc mirror --overwrite --remove payload/ minio/chatwire-web/
environment:
ACCESS_KEY:
from_secret: access_key
SECRET_KEY:
from_secret: secret_key