chatwire-element-pipeline/.woodpecker/deploy.yaml

28 lines
1 KiB
YAML
Raw Normal View History

2024-04-22 00:03:45 +02:00
when:
2024-04-27 01:18:30 +02:00
- branch: main
event: [ push, manual, cron ]
2024-04-22 00:03:45 +02:00
steps:
download:
image: debian:bookworm
commands:
# Install prerequisites
- apt update
- apt install -y wget
# Download and extract
# renovate: datasource=github-releases depName=element-hq/element-web versioning=semver-coerced
- export ELEMENT_VERSION=v1.11.65
2024-04-22 00:03:45 +02:00
- wget -O element.tar.gz https://github.com/element-hq/element-web/releases/download/$ELEMENT_VERSION/element-$ELEMENT_VERSION.tar.gz
- mkdir payload
- tar -xzf element.tar.gz --directory payload --strip-components 1
2024-05-04 01:41:39 +02:00
# Copy customizsations
- cp customization/config.json payload/
- cp customization/logo.png payload/welcome/images/
- cp customization/background.jpg payload/welcome/images/
2024-04-22 00:03:45 +02:00
publish:
image: minio/mc
secrets: [ access_key, secret_key ]
commands:
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
2024-05-04 01:41:39 +02:00
- mc mirror --overwrite --remove payload/ minio/chatwire-element/