This commit is contained in:
commit
148a0e31bc
5 changed files with 325 additions and 0 deletions
28
.woodpecker/deploy.yaml
Normal file
28
.woodpecker/deploy.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
when:
|
||||
event: [ push, manual, cron ]
|
||||
branch: main
|
||||
|
||||
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.63
|
||||
- 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
|
||||
|
||||
publish:
|
||||
image: minio/mc
|
||||
secrets: [ access_key, secret_key ]
|
||||
commands:
|
||||
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
|
||||
- mc rm --quiet --recursive --force minio/chatwire-element
|
||||
- mc cp --quiet --recursive payload/ minio/chatwire-element/
|
||||
- mc cp --quiet customization/config.json minio/chatwire-element/
|
||||
- mc cp --quiet customization/logo.png minio/chatwire-element/welcome/images/
|
||||
- mc cp --quiet customization/background.jpg minio/chatwire-element/welcome/images/
|
Loading…
Add table
Add a link
Reference in a new issue