1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2026-07-15 08:45:58 +00:00

Update for git mirror, separate dev build

This commit is contained in:
David Young
2017-07-25 16:33:35 +12:00
parent 0ab826de05
commit c162535ebd
7 changed files with 423 additions and 40 deletions
+14 -3
View File
@@ -15,18 +15,29 @@ build site:
expire_in: 1 day
paths:
- public
only:
- master
test site:
stage: test
script:
- echo fake result as a placeholder
deploy site:
deploy dev:
image: garland/docker-s3cmd
stage: deploy
environment: production
except:
- master
script:
- 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
stage: deploy
environment: production
only:
- master
script:
- export LC_ALL=C.UTF-8
- export LANG=C.UTF-8