Merge pull request #383 from vapor/feature/cloud2

Renaming Dockerfile
This commit is contained in:
Jonas Schwartz 2019-01-14 21:31:57 +01:00 committed by GitHub
commit 91c1906392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

43
.circleci/config.yml Normal file
View File

@ -0,0 +1,43 @@
version: 2
jobs:
test:
machine: true
steps:
- checkout
- run: docker build -f web.Dockerfile .
deploy:
docker:
- image: joscio/cloud2-build:v0.1.0
steps:
- add_ssh_keys:
fingerprints:
- $CLOUD2_SSH_FINGERPRINT
- checkout
- run:
name: Push to Git
command: |
ssh-keyscan -H git.code.vapor.cloud >> ~/.ssh/known_hosts
git config --global user.email "jonas+deploy@vapor.codes"
git config --global user.name "Auto deploy"
git commit --allow-empty -m "Trigger deployment"
git pull origin master
git push -q -f git@git.code.vapor.cloud:auto-deploy.git master
- run:
name: Login to Toolbox
command: vapor-beta cloud login --email $CLOUD2_EMAIL --password $CLOUD2_PASSWORD
- run:
name: Push to Vapor Cloud 2
command: vapor-beta cloud deploy -y --app auto-deploy --env production
workflows:
version: 2
deploy:
jobs:
- test
- deploy:
requires:
- test
filters:
branches:
only: master