From 9a58615ae9827d957367e30c3aee79e0c2016c75 Mon Sep 17 00:00:00 2001 From: Jonas Schwartz Date: Mon, 14 Jan 2019 21:13:08 +0100 Subject: [PATCH] Adding circleci config --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..76a54dcb --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2 + +jobs: + 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: + - deploy + #- deploy: + # filters: + # branches: + # only: master