Use mc mirrot for deployment
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
This commit is contained in:
parent
a7474a7eec
commit
cd5fa23887
|
@ -15,14 +15,14 @@ steps:
|
||||||
- wget -O element.tar.gz https://github.com/element-hq/element-web/releases/download/$ELEMENT_VERSION/element-$ELEMENT_VERSION.tar.gz
|
- wget -O element.tar.gz https://github.com/element-hq/element-web/releases/download/$ELEMENT_VERSION/element-$ELEMENT_VERSION.tar.gz
|
||||||
- mkdir payload
|
- mkdir payload
|
||||||
- tar -xzf element.tar.gz --directory payload --strip-components 1
|
- tar -xzf element.tar.gz --directory payload --strip-components 1
|
||||||
|
# Copy customizsations
|
||||||
|
- cp customization/config.json payload/
|
||||||
|
- cp customization/logo.png payload/welcome/images/
|
||||||
|
- cp customization/background.jpg payload/welcome/images/
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: minio/mc
|
image: minio/mc
|
||||||
secrets: [ access_key, secret_key ]
|
secrets: [ access_key, secret_key ]
|
||||||
commands:
|
commands:
|
||||||
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
|
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
|
||||||
- mc rm --quiet --recursive --force minio/chatwire-element
|
- mc mirror --overwrite --remove payload/ 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…
Reference in a new issue