From 95dbb40c018cc7a9a467b96a476b3bba7c94f2c0 Mon Sep 17 00:00:00 2001 From: Chris Hutchison Date: Fri, 20 Apr 2018 11:03:30 -0400 Subject: [PATCH] Create config.yml --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4ff18f1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ + + +version: 2 +jobs: + build: + docker: + - image: buildpack-deps:trusty + # specify the version you desire here + # - image: circleci/node:7.10 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/mongo:3.4.4 + + working_directory: ~/repo + + steps: + - checkout + - deploy: + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + echo -e "Host 159.89.243.114\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config + git config --global user.email "chris88@gmail.com" + git config --global user.name "Chris Hutchison" + git config --global merge.defaultToUpstream true + git remote add dokku dokku@159.89.243.114:isso + git fetch dokku master + git merge dokku/master --no-edit --commit + git push dokku master + fi