31 lines
959 B
YAML
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
|