From da30e97b85dc142dbc7b4d82afda32e0027cedf0 Mon Sep 17 00:00:00 2001 From: Umang Sharma Date: Sun, 3 Apr 2022 22:45:11 -0400 Subject: [PATCH 1/5] Circle CI test --- .circleci/config.yml | 89 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..9bfd08e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,89 @@ +version: 2 +jobs: + test: + docker: + - image: dsdummies/client-react:1.0 + working_directory: https://github.com/airavata-courses/DSDummies + steps: + - checkout + - run: + name: Run Tests + command: make test + build: + docker: + - image: dsdummies/client-react:1.0 + working_directory: https://github.com/airavata-courses/DSDummies + steps: + - checkout + - setup_remote_docker + - run: + name: Install lacking dependencies + - run: + name: Push docker image + command: ENV=dev + CIRCLE_BUILD_ID=$CIRCLE_BRANCH-$CIRCLE_SHA1 + make push-image /* openstack deploy to jetstream */ + - run: + name: Clean + command: make clean /* TBD remove */ + dev-deploy: + docker: + - image: dsdummies/client-react + working_directory: https://github.com/airavata-courses/DSDummies + steps: + - checkout + - setup_remote_docker + - run: + name: Install lacking dependencies + command: apt-get update && apt-get install -y make unzip gettext + - run: + name: Modify kubernetes deployment in the dev cluster + command: + ENV=dev + make push-image + - run: + name: Deploy to dev + command: + ENV=dev + MIN_REPLICAS=1 + MAX_REPLICAS=2 + CIRCLE_BUILD_ID=$CIRCLE_BRANCH-$CIRCLE_SHA1 + LOG_LEVEL=info + make deploy + - run: + name: Clean + command: make clean + +workflows: + version: 2 + dev-deploy: + jobs: + - test: + filters: + branches: + only: + - /.*/ + tags: + ignore: + - /.*/ + - dev-deploy-approval: + type: approval + requires: + - test + filters: + branches: + only: + - /.*/ + tags: + ignore: + - /.*/ + - dev-deploy: + requires: + - dev-deploy-approval + filters: + branches: + only: + - /.*/ + tags: + ignore: + - /.*/ From 359c37388b9600be9a7fdfd40c81750e4efa3b19 Mon Sep 17 00:00:00 2001 From: Umang Sharma Date: Sun, 3 Apr 2022 22:47:30 -0400 Subject: [PATCH 2/5] Circle CI test 1 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9bfd08e..ee2f875 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: - checkout - run: name: Run Tests - command: make test + command: echo "hello" build: docker: - image: dsdummies/client-react:1.0 From 8c4c9c2d0352785543c0f63045c3d89399bd4c19 Mon Sep 17 00:00:00 2001 From: Umang Sharma Date: Sun, 3 Apr 2022 23:19:22 -0400 Subject: [PATCH 3/5] Circle CI test 1 --- .circleci/config.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ee2f875..3c6d1a1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -40,7 +40,7 @@ jobs: name: Modify kubernetes deployment in the dev cluster command: ENV=dev - make push-image + # make push-image - run: name: Deploy to dev command: @@ -49,7 +49,7 @@ jobs: MAX_REPLICAS=2 CIRCLE_BUILD_ID=$CIRCLE_BRANCH-$CIRCLE_SHA1 LOG_LEVEL=info - make deploy + # make deploy - run: name: Clean command: make clean @@ -66,17 +66,6 @@ workflows: tags: ignore: - /.*/ - - dev-deploy-approval: - type: approval - requires: - - test - filters: - branches: - only: - - /.*/ - tags: - ignore: - - /.*/ - dev-deploy: requires: - dev-deploy-approval From 15677be1cdd7e87140eb1b1e99c7fb7d2bf0019b Mon Sep 17 00:00:00 2001 From: Umang Sharma Date: Sun, 3 Apr 2022 23:20:58 -0400 Subject: [PATCH 4/5] Circle CI test 2 --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3c6d1a1..74ba3b8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -67,8 +67,6 @@ workflows: ignore: - /.*/ - dev-deploy: - requires: - - dev-deploy-approval filters: branches: only: From bfef9040906e548b5d928a60550848bf6fedb020 Mon Sep 17 00:00:00 2001 From: Umang Sharma Date: Sun, 3 Apr 2022 23:22:06 -0400 Subject: [PATCH 5/5] Circle CI test 3 --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 74ba3b8..4202056 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,9 +23,9 @@ jobs: command: ENV=dev CIRCLE_BUILD_ID=$CIRCLE_BRANCH-$CIRCLE_SHA1 make push-image /* openstack deploy to jetstream */ - - run: - name: Clean - command: make clean /* TBD remove */ + # - run: + # name: Clean + # command: make clean /* TBD remove */ dev-deploy: docker: - image: dsdummies/client-react @@ -50,9 +50,9 @@ jobs: CIRCLE_BUILD_ID=$CIRCLE_BRANCH-$CIRCLE_SHA1 LOG_LEVEL=info # make deploy - - run: - name: Clean - command: make clean + # - run: + # name: Clean + # command: make clean workflows: version: 2