From 0f7e7633d0238fe26d366ef0fcef3fa57f0ef550 Mon Sep 17 00:00:00 2001 From: Michael Tayo Date: Tue, 1 Mar 2022 14:28:20 -0600 Subject: [PATCH 1/2] changing working dir --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6845aa00..4b12b838 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: # Variable expansion in working_directory not supported at this time # You will need to modify the code below to reflect your github account/repo setup - working_directory: /go/src/github.com/Securing-DevOps/invoicer-chapter2 + working_directory: /go/src/github.com/d0uble3L/invoicer-chapter2 docker: - image: circleci/golang:1.10 steps: From 79f0fd7e5db93b50adbbfa32147ede3c50f24955 Mon Sep 17 00:00:00 2001 From: Michael Tayo Date: Tue, 1 Mar 2022 14:38:15 -0600 Subject: [PATCH 2/2] update conf --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b12b838..c25cd2fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,11 +5,13 @@ jobs: # You will need to modify the code below to reflect your github account/repo setup working_directory: /go/src/github.com/d0uble3L/invoicer-chapter2 docker: + #declares the env that the job will run on - image: circleci/golang:1.10 steps: - checkout - setup_remote_docker + #environment variables neededto build the app - run: name: Setup environment command: | @@ -26,13 +28,13 @@ jobs: EOF - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - + # unit tests - run: name: Testing application command: | go test \ github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} - +# if changes are made to the master branch, builds the docker containter of the application - deploy: command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then