From a41f683da35d4064d0d8e43536355c48f42f47ae Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Fri, 17 Aug 2018 15:38:03 -0400 Subject: [PATCH] circle --- .circleci/config.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..a6af05a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,18 @@ +version: 2 +jobs: + build: + machine: true + steps: + - checkout + # start proprietary DB using private Docker image + # with credentials stored in the UI + - run: | + docker login -u $DOCKER_USER -p $DOCKER_PASS + + # build the application image + - run: docker build -t terribledev/public:remote-latest . + - run: docker build -t terribledev/public:remote-$CIRCLE_SHA1 . + + # deploy the image + - run: docker push terribledev/public:remote-latest + - run: docker push terribledev/public:remote-$CIRCLE_SHA1 \ No newline at end of file