Use Minio to publish
ci/woodpecker/push/woodpecker Pipeline failed Details

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
1 changed files with 4 additions and 5 deletions

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/