Use Minio to publish
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Kaan Barmore-Genç 2023-04-25 21:20:51 -04:00
parent c93b48bb74
commit 7a3c452c9b
Signed by: kaan
GPG key ID: B2E280771CD62FCF

View file

@ -10,9 +10,8 @@ pipeline:
commands:
- hugo -D
deploy:
image: seriousbug/rsync
secrets: [SSH_KEY, SSH_USER]
image: minio/mc
secrets: [MINIO_URL, ACCESS_KEY, SECRET_KEY]
commands:
- echo $SSH_KEY | base64 -d > ssh_key
- chmod 600 ssh_key
- rsync -avz -e 'ssh -o StrictHostKeyChecking=no -i ssh_key' public/ $SSH_USER@bgenc.net:/array/www/
- mc alias set minio $MINIO_URL $ACCESS_KEY $SECRET_KEY
- mc public/ minio/