From d42979300461d0e1a5468b5d864c067eaa6773a7 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 16 Apr 2019 10:49:00 +0300 Subject: [PATCH 01/15] update version --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index d6ca58c3d..a40754ede 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,4 +1,4 @@ -version: '1.0' +version: '2.0' steps: build_step: title: Build From a726ab615a12516a3a094a10074fea0fb8f4f408 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Fri, 10 May 2019 10:35:06 +0300 Subject: [PATCH 02/15] Add error to yaml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index a40754ede..acc8ad90b 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,6 +1,6 @@ version: '2.0' steps: - build_step: + build_step:7 title: Build type: build dockerfile: Dockerfile From 0f6373ea728d5581e1399459f3605682bffcfbdd Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 4 Jun 2019 17:25:35 +0300 Subject: [PATCH 03/15] add errors --- codefresh.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index acc8ad90b..bce305d3d 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,6 +1,6 @@ version: '2.0' steps: - build_step:7 + build_step: title: Build type: build dockerfile: Dockerfile @@ -17,7 +17,7 @@ steps: unit_test: type: composition - working_directory: '${{main_clone}}' + working_directory: '${{main_clone_2}}' composition: version: '2' services: @@ -28,16 +28,16 @@ steps: composition_candidates: test: image: '${{build_step}}' - command: npm test + command: npm test rpg push_to_registry: title: Push To Registry type: push candidate: ${{build_step}} - tag: ${{CF_BRANCH}} + tag: ${{CF_BRANCH_2}} deploy_to_ecs: title: Deploy Container to ECS - image: codefresh/cf-deploy-ecs + image: codefresh/cf-deploy-ecs-2 commands: - >- cfecs-update --image-name containers101/demochat --image-tag From 7d2800f23b5923b0280a73b4169fc37ddb5f38ba Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 4 Jun 2019 17:38:16 +0300 Subject: [PATCH 04/15] parallel tasks --- codefresh.yml | 100 +++++++++++++++++++++++++------------------------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index bce305d3d..e866cac44 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -14,54 +14,56 @@ steps: # working-directory : /usr/src/app # commands: # - npm test + my_parallel_tasks: + type: parallel + steps: + unit_test: + type: composition + working_directory: '${{main_clone_2}}' + composition: + version: '2' + services: + mongo: + image: 'mongo:latest' + ports: + - 27017 + composition_candidates: + test: + image: '${{build_step}}' + command: npm test rpg + push_to_registry: + title: Push To Registry + type: push + candidate: ${{build_step}} + tag: ${{CF_BRANCH_2}} - unit_test: - type: composition - working_directory: '${{main_clone_2}}' - composition: - version: '2' - services: - mongo: - image: 'mongo:latest' - ports: - - 27017 - composition_candidates: - test: - image: '${{build_step}}' - command: npm test rpg - push_to_registry: - title: Push To Registry - type: push - candidate: ${{build_step}} - tag: ${{CF_BRANCH_2}} + deploy_to_ecs: + title: Deploy Container to ECS + image: codefresh/cf-deploy-ecs-2 + commands: + - >- + cfecs-update --image-name containers101/demochat --image-tag + ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service + environment: + - 'AWS_ACCESS_KEY_ID=${{AWS_ACCESS_KEY_ID}}' + - 'AWS_SECRET_ACCESS_KEY=${{AWS_SECRET_ACCESS_KEY}}' + when: + condition: + all: + deploy_to_ecs: '"${{DEPLOY_ECS}}" == "true"' - deploy_to_ecs: - title: Deploy Container to ECS - image: codefresh/cf-deploy-ecs-2 - commands: - - >- - cfecs-update --image-name containers101/demochat --image-tag - ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service - environment: - - 'AWS_ACCESS_KEY_ID=${{AWS_ACCESS_KEY_ID}}' - - 'AWS_SECRET_ACCESS_KEY=${{AWS_SECRET_ACCESS_KEY}}' - when: - condition: - all: - deploy_to_ecs: '"${{DEPLOY_ECS}}" == "true"' - - deploy_to_kubernetes: - image: codefresh/cf-deploy-kubernetes - tag: latest - working_directory: ${{main_clone}} - commands: - - /cf-deploy-kubernetes deployment.yml - environment: - - KUBERNETES_USER=${{KUBERNETES_USER}} - - KUBERNETES_PASSWORD=${{KUBERNETES_PASSWORD}} - - KUBERNETES_SERVER=${{KUBERNETES_SERVER}} - - DOCKER_IMAGE_TAG=${{CF_BRANCH}} - when: - condition: - all: - deploy_to_kubernetes: '"${{DEPLOY_KUBERNETES}}" == "true"' + deploy_to_kubernetes: + image: codefresh/cf-deploy-kubernetes + tag: latest + working_directory: ${{main_clone}} + commands: + - /cf-deploy-kubernetes deployment.yml + environment: + - KUBERNETES_USER=${{KUBERNETES_USER}} + - KUBERNETES_PASSWORD=${{KUBERNETES_PASSWORD}} + - KUBERNETES_SERVER=${{KUBERNETES_SERVER}} + - DOCKER_IMAGE_TAG=${{CF_BRANCH}} + when: + condition: + all: + deploy_to_kubernetes: '"${{DEPLOY_KUBERNETES}}" == "true"' From 5121186004d02409109a956e4de6234e52c31835 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 4 Jun 2019 19:02:53 +0300 Subject: [PATCH 05/15] change version --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index e866cac44..1b6be5e5b 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,4 +1,4 @@ -version: '2.0' +version: 2.0 steps: build_step: title: Build From 70141e94d1d63fd6486948e11d17203860e7ab35 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 4 Jun 2019 19:08:45 +0300 Subject: [PATCH 06/15] version --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 1b6be5e5b..8c9712177 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,4 +1,4 @@ -version: 2.0 +version: '1.0' steps: build_step: title: Build From 71efac2509698049cb4ec855957fa26209363643 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Tue, 11 Jun 2019 11:24:19 +0300 Subject: [PATCH 07/15] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 8c9712177..ad5bc8cab 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -19,7 +19,7 @@ steps: steps: unit_test: type: composition - working_directory: '${{main_clone_2}}' + working_directory: '${{main_clone}}' composition: version: '2' services: From 966227e9289066d9c769947e61ea533b9e989cb9 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:47:04 +0300 Subject: [PATCH 08/15] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index ad5bc8cab..97a0719ab 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,6 +1,6 @@ version: '1.0' steps: - build_step: + build_step title: Build type: build dockerfile: Dockerfile From f569b8c215aba8e67541b151f2bbdcd8d52211ea Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:50:44 +0300 Subject: [PATCH 09/15] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 97a0719ab..ad5bc8cab 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,6 +1,6 @@ version: '1.0' steps: - build_step + build_step: title: Build type: build dockerfile: Dockerfile From 53dab97db92cc8a8d67495580a459d051901fef1 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:52:34 +0300 Subject: [PATCH 10/15] Update codefresh.yml --- codefresh.yml | 75 +++++---------------------------------------------- 1 file changed, 7 insertions(+), 68 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index ad5bc8cab..f490831bb 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,69 +1,8 @@ -version: '1.0' +version: "1.0" steps: - build_step: - title: Build - type: build - dockerfile: Dockerfile - image_name: demochat - tag: '${{CF_BRANCH}}' - -# unit_tests: -# title: Unit Tests -# image: ${{build_step}} -# fail_fast: false -# working-directory : /usr/src/app -# commands: -# - npm test - my_parallel_tasks: - type: parallel - steps: - unit_test: - type: composition - working_directory: '${{main_clone}}' - composition: - version: '2' - services: - mongo: - image: 'mongo:latest' - ports: - - 27017 - composition_candidates: - test: - image: '${{build_step}}' - command: npm test rpg - push_to_registry: - title: Push To Registry - type: push - candidate: ${{build_step}} - tag: ${{CF_BRANCH_2}} - - deploy_to_ecs: - title: Deploy Container to ECS - image: codefresh/cf-deploy-ecs-2 - commands: - - >- - cfecs-update --image-name containers101/demochat --image-tag - ${{CF_BRANCH}} eu-west-1 demochat-production demochat-service - environment: - - 'AWS_ACCESS_KEY_ID=${{AWS_ACCESS_KEY_ID}}' - - 'AWS_SECRET_ACCESS_KEY=${{AWS_SECRET_ACCESS_KEY}}' - when: - condition: - all: - deploy_to_ecs: '"${{DEPLOY_ECS}}" == "true"' - - deploy_to_kubernetes: - image: codefresh/cf-deploy-kubernetes - tag: latest - working_directory: ${{main_clone}} - commands: - - /cf-deploy-kubernetes deployment.yml - environment: - - KUBERNETES_USER=${{KUBERNETES_USER}} - - KUBERNETES_PASSWORD=${{KUBERNETES_PASSWORD}} - - KUBERNETES_SERVER=${{KUBERNETES_SERVER}} - - DOCKER_IMAGE_TAG=${{CF_BRANCH}} - when: - condition: - all: - deploy_to_kubernetes: '"${{DEPLOY_KUBERNETES}}" == "true"' + test: + type: "freestyle" + image: alpine + commands: + # - sleep 360 + exit 0 From af413afbc9dd98663d68bef3de4f4bb3748a5745 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:54:42 +0300 Subject: [PATCH 11/15] Update codefresh.yml --- codefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index f490831bb..6c8868acd 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,8 +1,8 @@ version: "1.0" steps: - test: + test type: "freestyle" image: alpine commands: # - sleep 360 - exit 0 + - exit 0 From ffdea22f749c882a155bc506c64be236e72ff018 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 15:45:40 +0300 Subject: [PATCH 12/15] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 6c8868acd..31ceb76e5 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -1,6 +1,6 @@ version: "1.0" steps: - test + test: type: "freestyle" image: alpine commands: From d9918c2f69e6da1447a9fed1f0c105ae3a130095 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 29 Jun 2020 15:47:51 +0300 Subject: [PATCH 13/15] Update codefresh.yml --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 31ceb76e5..f74062fd9 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -4,5 +4,5 @@ steps: type: "freestyle" image: alpine commands: - # - sleep 360 + # - sleep 36 - exit 0 From 2e7a9764f3ffdb69c22346c894a8fd40de2aad86 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:41:07 +0300 Subject: [PATCH 14/15] yaml resolution --- codefresh.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 codefresh.yaml diff --git a/codefresh.yaml b/codefresh.yaml new file mode 100644 index 000000000..854f0f2c1 --- /dev/null +++ b/codefresh.yaml @@ -0,0 +1,8 @@ +version: "1.0" +steps: + test: + type: "freestyle" + image: alpine + commands: + - sleep 36 + - exit 0 From 588fcae130b306423d7922f00f251ccec3290769 Mon Sep 17 00:00:00 2001 From: Aleksandr-codefresh <45179027+Aleksandr-codefresh@users.noreply.github.com> Date: Mon, 21 Jun 2021 14:45:46 +0200 Subject: [PATCH 15/15] Change version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c6ca0ef66..22e2ee9c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lets-chat", - "version": "0.4.5", + "version": "0.4.6", "description": "A chat app for small teams.", "license": "MIT", "main": "app.js",