From cd5fa23887da138dd3a5603f7e550afa8b766ac2 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sat, 4 May 2024 01:41:39 +0200 Subject: [PATCH] Use mc mirrot for deployment --- .woodpecker/deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml index 7c92b19..ad88d57 100644 --- a/.woodpecker/deploy.yaml +++ b/.woodpecker/deploy.yaml @@ -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 - mkdir payload - 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: 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/ \ No newline at end of file + - mc mirror --overwrite --remove payload/ minio/chatwire-element/ \ No newline at end of file