From 55f3b503f61b2c1bf410bb441beb2b7bb3dcc169 Mon Sep 17 00:00:00 2001 From: nagappan Date: Tue, 8 Jan 2019 10:04:07 +0000 Subject: [PATCH 01/30] Add a dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..5343fbfbd2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx +COPY . /usr/share/nginx/html From fbcb1e9fbde4c9cc99e06fee9752bc2a7337c43e Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Mon, 10 Jun 2019 15:19:11 +0800 Subject: [PATCH 02/30] Add circleci config --- .circleci/config.yml | 19 +++++++++++++++++++ .gitignore | 1 + 2 files changed, 20 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..e5f93b5604 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,19 @@ +version: 2.1 +orbs: + aws-ecr: circleci/aws-ecr@0.0.2 + aws-ecs: circleci/aws-ecs@0.0.8 +workflows: + build-and-deploy: + jobs: + - aws-ecr/build_and_push_image: + account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" + repo: "${AWS_RESOURCE_NAME_PREFIX}" + region: ${AWS_DEFAULT_REGION} + tag: "${CIRCLE_SHA1}" + - aws-ecs/deploy-service-update: + requires: + - aws-ecr/build_and_push_image + aws-region: ${AWS_DEFAULT_REGION} + family: "${AWS_RESOURCE_NAME_PREFIX}-service" + cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" + container-image-name-updates: "container=${AWS_RESOURCE_NAME_PREFIX}-service,tag=${CIRCLE_SHA1}" diff --git a/.gitignore b/.gitignore index 0d31019855..72ed83ce79 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .sass-cache/ +**.sw? From ba4e572724c6efd042185fdcb58efe8f05e31ac0 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Mon, 10 Jun 2019 17:22:01 +0800 Subject: [PATCH 03/30] push image --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e5f93b5604..62a23023a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,4 +16,5 @@ workflows: aws-region: ${AWS_DEFAULT_REGION} family: "${AWS_RESOURCE_NAME_PREFIX}-service" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" - container-image-name-updates: "container=${AWS_RESOURCE_NAME_PREFIX}-service,tag=${CIRCLE_SHA1}" + # container-image-name-updates: "container=${AWS_RESOURCE_NAME_PREFIX}-service,tag=${CIRCLE_SHA1}" + container-image-name-updates: "container=svc-hello,tag=${CIRCLE_SHA1}" From 368c49076551e684b7ad59e9c34854043f59c327 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Mon, 10 Jun 2019 17:25:53 +0800 Subject: [PATCH 04/30] changes --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 62a23023a5..70b2f48a0e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,8 @@ workflows: jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" - repo: "${AWS_RESOURCE_NAME_PREFIX}" + # repo: "${AWS_RESOURCE_NAME_PREFIX}" + repo: "svc-hello" region: ${AWS_DEFAULT_REGION} tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: From 5b339193ac5fc765d2103064c92ab8cad65e0bb0 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Tue, 11 Jun 2019 17:40:32 +0800 Subject: [PATCH 05/30] Update config --- .circleci/config.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70b2f48a0e..25cc916ff8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,14 +8,13 @@ workflows: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" # repo: "${AWS_RESOURCE_NAME_PREFIX}" - repo: "svc-hello" + repo: "game-2048" region: ${AWS_DEFAULT_REGION} tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: requires: - aws-ecr/build_and_push_image aws-region: ${AWS_DEFAULT_REGION} - family: "${AWS_RESOURCE_NAME_PREFIX}-service" + family: "nginx-hello" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" - # container-image-name-updates: "container=${AWS_RESOURCE_NAME_PREFIX}-service,tag=${CIRCLE_SHA1}" - container-image-name-updates: "container=svc-hello,tag=${CIRCLE_SHA1}" + container-image-name-updates: "container=nginx-hello-service,tag=${CIRCLE_SHA1}" From 57c7cd00dcf971ff9cf30ec05648dc686664e2ee Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Tue, 11 Jun 2019 17:42:55 +0800 Subject: [PATCH 06/30] Update config again --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 25cc916ff8..03d3d1a129 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ workflows: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" # repo: "${AWS_RESOURCE_NAME_PREFIX}" - repo: "game-2048" + repo: "nginx-hello" region: ${AWS_DEFAULT_REGION} tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: From 0f34138c6b72fac8ae55af7545083679c36c1900 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Tue, 11 Jun 2019 17:49:19 +0800 Subject: [PATCH 07/30] Experimenting --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03d3d1a129..87a52bbd57 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,6 @@ workflows: requires: - aws-ecr/build_and_push_image aws-region: ${AWS_DEFAULT_REGION} - family: "nginx-hello" + family: "nginx-hello-service" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" container-image-name-updates: "container=nginx-hello-service,tag=${CIRCLE_SHA1}" From 34e7460d843b8dd625c29892ffa31d03c3aa567d Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Tue, 11 Jun 2019 17:56:19 +0800 Subject: [PATCH 08/30] Experimenting --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 87a52bbd57..a8d93b6366 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,4 +17,4 @@ workflows: aws-region: ${AWS_DEFAULT_REGION} family: "nginx-hello-service" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" - container-image-name-updates: "container=nginx-hello-service,tag=${CIRCLE_SHA1}" + container-image-name-updates: "container=nginx-hello-service,image-and-tag=nginx-hello:${CIRCLE_SHA1}" From 8ff0ea8cb0197f2fcef9df3410250bb30d551a29 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Tue, 11 Jun 2019 18:03:05 +0800 Subject: [PATCH 09/30] Experimenting --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a8d93b6366..d51722c634 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,4 +17,5 @@ workflows: aws-region: ${AWS_DEFAULT_REGION} family: "nginx-hello-service" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" - container-image-name-updates: "container=nginx-hello-service,image-and-tag=nginx-hello:${CIRCLE_SHA1}" + container-image-name-updates: "container=nginx-hello-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/nginx-hello:${CIRCLE_SHA1}" + verify-revision-is-deployed: true From dd79e3976aecd698f2228115d164e3bdf29ec5b1 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:07:32 +0800 Subject: [PATCH 10/30] Get repo name from the env variables --- .circleci/config.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d51722c634..ec861eda84 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,15 +7,14 @@ workflows: jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" - # repo: "${AWS_RESOURCE_NAME_PREFIX}" - repo: "nginx-hello" + repo: "${REPO_NAME}" region: ${AWS_DEFAULT_REGION} tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: requires: - aws-ecr/build_and_push_image aws-region: ${AWS_DEFAULT_REGION} - family: "nginx-hello-service" + family: "${REPO_NAME}" cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" - container-image-name-updates: "container=nginx-hello-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/nginx-hello:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true From d71e88255e08ea9a25b2429c5dce424b60ee2ea7 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:12:35 +0800 Subject: [PATCH 11/30] Experimenting --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ec861eda84..3e0c5cf8b1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,6 @@ workflows: - aws-ecr/build_and_push_image aws-region: ${AWS_DEFAULT_REGION} family: "${REPO_NAME}" - cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster" + cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 25478a1f67025897222100b1c22dbc7ac232112b Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:17:21 +0800 Subject: [PATCH 12/30] Experimenting --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e0c5cf8b1..37ddf1cb4d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,6 +4,8 @@ orbs: aws-ecs: circleci/aws-ecs@0.0.8 workflows: build-and-deploy: + environment: + REPO_NAME: 'tf-chesslang' jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" From 948f2b4f9e36a3ce2a41b9b3c7655f4c8ee9ddb8 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:18:52 +0800 Subject: [PATCH 13/30] Experimenting --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37ddf1cb4d..3e0c5cf8b1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,8 +4,6 @@ orbs: aws-ecs: circleci/aws-ecs@0.0.8 workflows: build-and-deploy: - environment: - REPO_NAME: 'tf-chesslang' jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" From 802818a80c4ce3d6de9a60b2a710958721269834 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:27:37 +0800 Subject: [PATCH 14/30] Experimenting --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e0c5cf8b1..ced9afd539 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,6 +4,8 @@ orbs: aws-ecs: circleci/aws-ecs@0.0.8 workflows: build-and-deploy: + environment: + REPO_NAME: 'tf-chesslang' jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" @@ -14,7 +16,7 @@ workflows: requires: - aws-ecr/build_and_push_image aws-region: ${AWS_DEFAULT_REGION} - family: "${REPO_NAME}" + family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 0ffbdd904aae20947f5e48e42cb6bad477d7e934 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:29:31 +0800 Subject: [PATCH 15/30] Experimenting 2 --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ced9afd539..5337620f3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,8 +4,6 @@ orbs: aws-ecs: circleci/aws-ecs@0.0.8 workflows: build-and-deploy: - environment: - REPO_NAME: 'tf-chesslang' jobs: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" From 37bebe833d4bda37e2338f13ae85e8e14271f4f8 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 18:35:07 +0800 Subject: [PATCH 16/30] Experimenting 2 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5337620f3a..9509a95f11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,5 +16,5 @@ workflows: aws-region: ${AWS_DEFAULT_REGION} family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=083584264446.dkr.ecr.ap-south-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 269abdcf502064d86cfbc606e456c594e27f763f Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 19:36:13 +0800 Subject: [PATCH 17/30] Experimenting 3 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9509a95f11..6a53084935 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,3 +18,4 @@ workflows: cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true + From 6d3b0f0eba2d77c68d16f0be23c26079f052563a Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 19:39:49 +0800 Subject: [PATCH 18/30] Experimenting 4 --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6a53084935..6c78e18a69 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,12 +8,12 @@ workflows: - aws-ecr/build_and_push_image: account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" repo: "${REPO_NAME}" - region: ${AWS_DEFAULT_REGION} + region: "${AWS_DEFAULT_REGION}" tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: requires: - aws-ecr/build_and_push_image - aws-region: ${AWS_DEFAULT_REGION} + aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" From 8fceb0e0623b4a0d068d8bab148b6408b27d44b4 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 19:46:36 +0800 Subject: [PATCH 19/30] Experimenting 5 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6c78e18a69..6a5ba6a278 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,6 @@ workflows: aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.ap-southeast-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 25d06ce7139dfab20b943598c516591eff0dc299 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 19:53:44 +0800 Subject: [PATCH 20/30] Experimenting 6 --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6a5ba6a278..e4035d1d0d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,5 @@ workflows: aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.ap-southeast-1.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true - From cf73a1e676b2acc978da5928377c10b526824c96 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:25:15 +0800 Subject: [PATCH 21/30] Experimenting 7 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e4035d1d0d..6c78e18a69 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,3 +18,4 @@ workflows: cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true + From f54711d9acb1bb3f335cf64cff3b3b6570cb7d50 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:30:12 +0800 Subject: [PATCH 22/30] Experimenting 7 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6c78e18a69..c7e6d5bc9d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,6 @@ workflows: aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag={AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" + container-image-name-updates: "container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true From abe35a43998db8e175e00c4793a64cd30cb8b2f8 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:41:38 +0800 Subject: [PATCH 23/30] Experimenting 7 --- .circleci/config.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c7e6d5bc9d..0f048e9bcb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,17 +5,21 @@ orbs: workflows: build-and-deploy: jobs: - - aws-ecr/build_and_push_image: - account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" - repo: "${REPO_NAME}" - region: "${AWS_DEFAULT_REGION}" - tag: "${CIRCLE_SHA1}" - - aws-ecs/deploy-service-update: - requires: - - aws-ecr/build_and_push_image - aws-region: "${AWS_DEFAULT_REGION}" - family: "${REPO_NAME}-service" - cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" - verify-revision-is-deployed: true + # - aws-ecr/build_and_push_image: + # account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" + # repo: "${REPO_NAME}" + # region: "${AWS_DEFAULT_REGION}" + # tag: "${CIRCLE_SHA1}" + - deploy-service-update: + steps: + - run: "export param='container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:$CIRCLE_SHA1'" + - run: "echo $param" + - aws-ecs/deploy-service-update: + requires: + - aws-ecr/build_and_push_image + aws-region: "${AWS_DEFAULT_REGION}" + family: "${REPO_NAME}-service" + cluster-name: "${REPO_NAME}-cluster" + container-image-name-updates: + verify-revision-is-deployed: true From 413cc7d02b225a8e3a10b2f47ee5885b83f28e2e Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:43:47 +0800 Subject: [PATCH 24/30] Experimenting 7 --- .circleci/config.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0f048e9bcb..490c003375 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,21 @@ version: 2.1 orbs: aws-ecr: circleci/aws-ecr@0.0.2 aws-ecs: circleci/aws-ecs@0.0.8 +jobs: + deploy-service-update: + steps: + - run: "export param='container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:$CIRCLE_SHA1'" + - run: "echo $param" + - aws-ecs/deploy-service-update: + requires: + - aws-ecr/build_and_push_image + aws-region: "${AWS_DEFAULT_REGION}" + family: "${REPO_NAME}-service" + cluster-name: "${REPO_NAME}-cluster" + container-image-name-updates: + verify-revision-is-deployed: true + + workflows: build-and-deploy: jobs: @@ -10,16 +25,4 @@ workflows: # repo: "${REPO_NAME}" # region: "${AWS_DEFAULT_REGION}" # tag: "${CIRCLE_SHA1}" - - deploy-service-update: - steps: - - run: "export param='container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:$CIRCLE_SHA1'" - - run: "echo $param" - - aws-ecs/deploy-service-update: - requires: - - aws-ecr/build_and_push_image - aws-region: "${AWS_DEFAULT_REGION}" - family: "${REPO_NAME}-service" - cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: - verify-revision-is-deployed: true - + - deploy-service-update From d3e2fce630cc637c880d64937181272548610365 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:45:19 +0800 Subject: [PATCH 25/30] Experimenting 7 --- .circleci/config.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 490c003375..5fc6adb7f0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,27 +2,20 @@ version: 2.1 orbs: aws-ecr: circleci/aws-ecr@0.0.2 aws-ecs: circleci/aws-ecs@0.0.8 -jobs: - deploy-service-update: - steps: - - run: "export param='container=tf-chesslang-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:$CIRCLE_SHA1'" - - run: "echo $param" +workflows: + build-and-deploy: + jobs: + - aws-ecr/build_and_push_image: + account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" + repo: "${REPO_NAME}" + region: "${AWS_DEFAULT_REGION}" + tag: "${CIRCLE_SHA1}" - aws-ecs/deploy-service-update: requires: - aws-ecr/build_and_push_image aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true - -workflows: - build-and-deploy: - jobs: - # - aws-ecr/build_and_push_image: - # account-url: "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com" - # repo: "${REPO_NAME}" - # region: "${AWS_DEFAULT_REGION}" - # tag: "${CIRCLE_SHA1}" - - deploy-service-update From 24fd33465a957fc18aa032e8d0041a8dfd72fff6 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:47:42 +0800 Subject: [PATCH 26/30] Experimenting 7 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5fc6adb7f0..f6f00b8415 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,6 @@ workflows: aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=085433797729.dkr.ecr.ap-southeast-1.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=085433797729.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 81d57416770ba99526bc2580a7bd224ef6c116de Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 20:50:20 +0800 Subject: [PATCH 27/30] Experimenting 7 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6f00b8415..0728260a59 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,6 @@ workflows: aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=085433797729.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true From 3cb2366cab107e758c7ef2752e3cbc4c9277a9a0 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Wed, 12 Jun 2019 21:04:06 +0800 Subject: [PATCH 28/30] Experimenting 7 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0728260a59..2286408995 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,3 +19,4 @@ workflows: container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true + From 4109fb74cd4408c1ae18173de2b9469c117493bd Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Thu, 13 Jun 2019 15:30:17 +0530 Subject: [PATCH 29/30] Experimenting 8 --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2286408995..fa96010ae4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,5 +18,3 @@ workflows: cluster-name: "${REPO_NAME}-cluster" container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" verify-revision-is-deployed: true - - From 02b64a602a9a969b53191c4cb644285ef9971206 Mon Sep 17 00:00:00 2001 From: Nagappan Nachiappan Date: Thu, 13 Jun 2019 15:36:05 +0530 Subject: [PATCH 30/30] Experimenting 9 --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fa96010ae4..a8bff8e538 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,6 @@ workflows: - aws-ecr/build_and_push_image aws-region: "${AWS_DEFAULT_REGION}" family: "${REPO_NAME}-service" - cluster-name: "${REPO_NAME}-cluster" - container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/tf-chesslang:${CIRCLE_SHA1}" + cluster-name: "tf-chesslang-cluster" + container-image-name-updates: "container=${REPO_NAME}-service,image-and-tag=${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPO_NAME}:${CIRCLE_SHA1}" verify-revision-is-deployed: true