From 34b4a9891644db7260aff8e108d972ea4b571ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sat, 6 Feb 2021 12:39:55 +0100 Subject: [PATCH] Add .circleci/config.yml --- .circleci/config.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..75a0764 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,28 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/golang:1.15 + working_directory: ~/twhelpapi + steps: + - checkout + - setup_remote_docker + # start proprietary DB using private Docker image + # with credentials stored in the UI + - run: | + docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD + # build the application image + - run: docker build -t $DOCKER_LOGIN/twhelp-api:latest . + + # deploy the image + - run: docker push $DOCKER_LOGIN/twhelp-api:latest +workflows: + version: 2 + deploy_prod: + jobs: + - build: + context: TWHelp + filters: + branches: + only: + - master \ No newline at end of file