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