Use s3cmd for uploading

This commit is contained in:
Ariejan de Vroom 2017-03-16 20:27:21 +01:00
parent f216b85810
commit 1563b23643

View File

@ -17,7 +17,7 @@ build:
deploy_prod:
stage: deploy
script:
- aws s3 sync public/ s3://$AWS_BUCKET
- s3cmd sync --acl-public --reduced-redundancy --delete-removed --cf-invalidate public/* s3://$AWS_BUCKET
artifacts:
paths:
- public
@ -26,5 +26,3 @@ deploy_prod:
url: https://www.devroom.io
only:
- master
#- rsync -az4 --stats --delete-after public/* -e "ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net/