mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2026-09-03 17:07:07 +00:00
Update CI workflow for rsync vs S3
This commit is contained in:
+12
-3
@@ -22,15 +22,24 @@ test site:
|
||||
- echo fake result as a placeholder
|
||||
|
||||
deploy dev:
|
||||
image: garland/docker-s3cmd
|
||||
# image: garland/docker-s3cmd
|
||||
image: alpine
|
||||
stage: deploy
|
||||
environment: production
|
||||
environment: development
|
||||
except:
|
||||
- master
|
||||
script:
|
||||
- apk add rsync openssh --no-cache
|
||||
- export LC_ALL=C.UTF-8
|
||||
- export LANG=C.UTF-8
|
||||
- s3cmd --no-mime-magic --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --acl-public --delete-removed --delete-after --no-ssl --host=$S3HOST --host-bucket='$S3HOSTBUCKET' sync public s3://geeks-cookbook-dev
|
||||
- mkdir .ssh
|
||||
- chmod 700 .ssh
|
||||
- echo $SSHKEY > .ssh/id_rsa
|
||||
- chmod 600 .ssh/id_rsa
|
||||
- rsync -avr public $SSHUSER@$SSHHOST:$SSHPATH/geeks-cookbook-dev
|
||||
# - export LC_ALL=C.UTF-8
|
||||
# - export LANG=C.UTF-8
|
||||
# - s3cmd --no-mime-magic --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --acl-public --delete-removed --delete-after --no-ssl --host=$S3HOST --host-bucket='$S3HOSTBUCKET' sync public s3://geeks-cookbook-dev
|
||||
|
||||
deploy prod:
|
||||
image: garland/docker-s3cmd
|
||||
|
||||
Reference in New Issue
Block a user