From 8bb4ba26e2806b079a511f42ebf71f8e17b0dc1b Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:03:05 +0800 Subject: [PATCH 001/172] Create nodejs.yml --- .github/workflows/nodejs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..4390e930 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true From 1acfc792b7fd9708a6c9d067ac16bba54173b5b4 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:06:24 +0800 Subject: [PATCH 002/172] testing commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e02cd858..95bd8e9b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Tests: ``` npm run test -``` +```' Run server (defaults to localhost:3000): From 9c04fad60bf53ddfcfd4d6b0342cf62a95e82116 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:11:35 +0800 Subject: [PATCH 003/172] Create nodejs_1.yml --- .github/workflows/nodejs_1.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nodejs_1.yml diff --git a/.github/workflows/nodejs_1.yml b/.github/workflows/nodejs_1.yml new file mode 100644 index 00000000..4390e930 --- /dev/null +++ b/.github/workflows/nodejs_1.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true From 2ce66bb5f64d53bb3f0c94377415a3f827ba256c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:17:09 +0800 Subject: [PATCH 004/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95bd8e9b..cb257b6e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Tests: ``` npm run test -```' +```'` Run server (defaults to localhost:3000): From 5db2e0d000b184b2d01d3c8c27d6b0bee8f62ea0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:18:34 +0800 Subject: [PATCH 005/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb257b6e..981b49fd 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pr There are some built-in unit tests to ensure that everything can be verified. -### Instructions +### Instructions# Please fork this repository and ensure you have a local working copy. You will need a working NodeJS environment. Get the latest stable version from https://nodejs.org/en/download/ or via your OS package manager (e.g. `brew` on Mac or `chocolatey` on Windows). From 0b98b2bb22cb163d84e8c4e2487802138a50d259 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:36:18 +0800 Subject: [PATCH 006/172] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index be1803c5..36fe0f55 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"), "Hello World 👋👋"); + assert.equal(utils.greetings("World"), "Hello Ryan 👋👋"); }); it("Throws on missing params", function() { From de69f94ad144c8ce12d2bbc04e7d46da3f4ff5ed Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:47:22 +0800 Subject: [PATCH 007/172] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index 36fe0f55..be1803c5 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"), "Hello Ryan 👋👋"); + assert.equal(utils.greetings("World"), "Hello World 👋👋"); }); it("Throws on missing params", function() { From e5700e4081d17a5d7454a754bc6c66585400d95d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 16 Apr 2020 11:53:49 +0800 Subject: [PATCH 008/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 981b49fd..b8887dbf 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pr ![out](https://user-images.githubusercontent.com/1078545/57860397-bc7ff380-77ec-11e9-80f8-39e02ef3c035.gif) -### Demo (failure) +### Demo (failure)# ![out](https://user-images.githubusercontent.com/1078545/57860396-bc7ff380-77ec-11e9-8f55-83b879e667d2.gif) From 7a58e3a9afd7c0bed0f0d08b855e90e7a7ac4122 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 17:29:30 +0800 Subject: [PATCH 009/172] Create aws.yml --- .github/workflows/aws.yml | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/aws.yml diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml new file mode 100644 index 00000000..5cf046c1 --- /dev/null +++ b/.github/workflows/aws.yml @@ -0,0 +1,80 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, when a release is created +# +# To use this workflow, you will need to complete the following set-up steps: +# +# 1. Create an ECR repository to store your images. +# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. +# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. +# Replace the value of `aws-region` in the workflow below with your repository's region. +# +# 2. Create an ECS task definition, an ECS cluster, and an ECS service. +# For example, follow the Getting Started guide on the ECS console: +# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun +# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. +# +# 3. Store your ECS task definition as a JSON file in your repository. +# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. +# Replace the value of `task-definition` in the workflow below with your JSON file's name. +# Replace the value of `container-name` in the workflow below with the name of the container +# in the `containerDefinitions` section of the task definition. +# +# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. +# See the documentation for each action used below for the recommended IAM policies for this IAM user, +# and best practices on handling the access key credentials. + +on: + release: + types: [created] + +name: Deploy to Amazon ECS + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ Access_key_ID }} + aws-secret-access-key: ${{ Secret_access_key }} + aws-region: us-east-2 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + - name: Build, tag, and push image to Amazon ECR + id: build-image + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: my-ecr-repo + IMAGE_TAG: ${{ github.sha }} + run: | + # Build a docker container and + # push it to ECR so that it can + # be deployed to ECS. + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + + - name: Fill in the new image ID in the Amazon ECS task definition + id: task-def + uses: aws-actions/amazon-ecs-render-task-definition@v1 + with: + task-definition: task-definition.json + container-name: sample-app + image: ${{ steps.build-image.outputs.image }} + + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: sample-app-service + cluster: default + wait-for-service-stability: true From 5f7f25ab1f197caea583f832fe1bc75905b4d911 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 17:32:01 +0800 Subject: [PATCH 010/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8887dbf..5e3fb01e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pr There are some built-in unit tests to ensure that everything can be verified. -### Instructions# +### Instructions Please fork this repository and ensure you have a local working copy. You will need a working NodeJS environment. Get the latest stable version from https://nodejs.org/en/download/ or via your OS package manager (e.g. `brew` on Mac or `chocolatey` on Windows). From 29bec8e0f4b8beb1354e045cb08c5d8ee8f9fcf1 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 20:39:19 +0800 Subject: [PATCH 011/172] Create aws1.yml --- .github/workflows/aws1.yml | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/aws1.yml diff --git a/.github/workflows/aws1.yml b/.github/workflows/aws1.yml new file mode 100644 index 00000000..a81947c6 --- /dev/null +++ b/.github/workflows/aws1.yml @@ -0,0 +1,80 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, when a release is created +# +# To use this workflow, you will need to complete the following set-up steps: +# +# 1. Create an ECR repository to store your images. +# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. +# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. +# Replace the value of `aws-region` in the workflow below with your repository's region. +# +# 2. Create an ECS task definition, an ECS cluster, and an ECS service. +# For example, follow the Getting Started guide on the ECS console: +# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun +# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. +# +# 3. Store your ECS task definition as a JSON file in your repository. +# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. +# Replace the value of `task-definition` in the workflow below with your JSON file's name. +# Replace the value of `container-name` in the workflow below with the name of the container +# in the `containerDefinitions` section of the task definition. +# +# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. +# See the documentation for each action used below for the recommended IAM policies for this IAM user, +# and best practices on handling the access key credentials. + +on: + release: + types: [created] + +name: Deploy to Amazon ECS + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.Access_key_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-southeast-1 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + - name: Build, tag, and push image to Amazon ECR + id: build-image + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: my-ecr-repo + IMAGE_TAG: ${{ github.sha }} + run: | + # Build a docker container and + # push it to ECR so that it can + # be deployed to ECS. + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + + - name: Fill in the new image ID in the Amazon ECS task definition + id: task-def + uses: aws-actions/amazon-ecs-render-task-definition@v1 + with: + task-definition: task-definition.json + container-name: sample-app + image: ${{ steps.build-image.outputs.image }} + + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: crest-github-cd + cluster: default + wait-for-service-stability: true From 6c16a8049aa8d3b12072c46056593c9c19b8a067 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 20:39:34 +0800 Subject: [PATCH 012/172] Delete aws.yml --- .github/workflows/aws.yml | 80 --------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 .github/workflows/aws.yml diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml deleted file mode 100644 index 5cf046c1..00000000 --- a/.github/workflows/aws.yml +++ /dev/null @@ -1,80 +0,0 @@ -# This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, when a release is created -# -# To use this workflow, you will need to complete the following set-up steps: -# -# 1. Create an ECR repository to store your images. -# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. -# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. -# Replace the value of `aws-region` in the workflow below with your repository's region. -# -# 2. Create an ECS task definition, an ECS cluster, and an ECS service. -# For example, follow the Getting Started guide on the ECS console: -# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun -# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. -# -# 3. Store your ECS task definition as a JSON file in your repository. -# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. -# Replace the value of `task-definition` in the workflow below with your JSON file's name. -# Replace the value of `container-name` in the workflow below with the name of the container -# in the `containerDefinitions` section of the task definition. -# -# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. -# See the documentation for each action used below for the recommended IAM policies for this IAM user, -# and best practices on handling the access key credentials. - -on: - release: - types: [created] - -name: Deploy to Amazon ECS - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ Access_key_ID }} - aws-secret-access-key: ${{ Secret_access_key }} - aws-region: us-east-2 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: my-ecr-repo - IMAGE_TAG: ${{ github.sha }} - run: | - # Build a docker container and - # push it to ECR so that it can - # be deployed to ECS. - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: sample-app - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: sample-app-service - cluster: default - wait-for-service-stability: true From b19e0efb90cf1fcd7eaea151d74e4423556b75bf Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 20:45:00 +0800 Subject: [PATCH 013/172] Update aws1.yml --- .github/workflows/aws1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws1.yml b/.github/workflows/aws1.yml index a81947c6..b53adf35 100644 --- a/.github/workflows/aws1.yml +++ b/.github/workflows/aws1.yml @@ -42,7 +42,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.Access_key_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.Secret_access_key }} aws-region: ap-southeast-1 - name: Login to Amazon ECR From aa05cac40138eecf2165153d8c6d72aa0f4dff49 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 20:59:13 +0800 Subject: [PATCH 014/172] Delete aws1.yml --- .github/workflows/aws1.yml | 80 -------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 .github/workflows/aws1.yml diff --git a/.github/workflows/aws1.yml b/.github/workflows/aws1.yml deleted file mode 100644 index b53adf35..00000000 --- a/.github/workflows/aws1.yml +++ /dev/null @@ -1,80 +0,0 @@ -# This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, when a release is created -# -# To use this workflow, you will need to complete the following set-up steps: -# -# 1. Create an ECR repository to store your images. -# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. -# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. -# Replace the value of `aws-region` in the workflow below with your repository's region. -# -# 2. Create an ECS task definition, an ECS cluster, and an ECS service. -# For example, follow the Getting Started guide on the ECS console: -# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun -# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. -# -# 3. Store your ECS task definition as a JSON file in your repository. -# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. -# Replace the value of `task-definition` in the workflow below with your JSON file's name. -# Replace the value of `container-name` in the workflow below with the name of the container -# in the `containerDefinitions` section of the task definition. -# -# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. -# See the documentation for each action used below for the recommended IAM policies for this IAM user, -# and best practices on handling the access key credentials. - -on: - release: - types: [created] - -name: Deploy to Amazon ECS - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.Access_key_ID }} - aws-secret-access-key: ${{ secrets.Secret_access_key }} - aws-region: ap-southeast-1 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: my-ecr-repo - IMAGE_TAG: ${{ github.sha }} - run: | - # Build a docker container and - # push it to ECR so that it can - # be deployed to ECS. - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: sample-app - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: crest-github-cd - cluster: default - wait-for-service-stability: true From c900ee87ec7d99d8b7ee2a962b3651b29986b24b Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:04:05 +0800 Subject: [PATCH 015/172] Create aws.yml --- .github/workflows/aws.yml | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/aws.yml diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml new file mode 100644 index 00000000..76b54b15 --- /dev/null +++ b/.github/workflows/aws.yml @@ -0,0 +1,80 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, when a release is created +# +# To use this workflow, you will need to complete the following set-up steps: +# +# 1. Create an ECR repository to store your images. +# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. +# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. +# Replace the value of `aws-region` in the workflow below with your repository's region. +# +# 2. Create an ECS task definition, an ECS cluster, and an ECS service. +# For example, follow the Getting Started guide on the ECS console: +# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun +# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. +# +# 3. Store your ECS task definition as a JSON file in your repository. +# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. +# Replace the value of `task-definition` in the workflow below with your JSON file's name. +# Replace the value of `container-name` in the workflow below with the name of the container +# in the `containerDefinitions` section of the task definition. +# +# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. +# See the documentation for each action used below for the recommended IAM policies for this IAM user, +# and best practices on handling the access key credentials. + +on: + release: + types: [created] + +name: Deploy to Amazon ECS + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-southeast-1 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + - name: Build, tag, and push image to Amazon ECR + id: build-image + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: my-ecr-repo + IMAGE_TAG: ${{ github.sha }} + run: | + # Build a docker container and + # push it to ECR so that it can + # be deployed to ECS. + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + + - name: Fill in the new image ID in the Amazon ECS task definition + id: task-def + uses: aws-actions/amazon-ecs-render-task-definition@v1 + with: + task-definition: task-definition.json + container-name: sample-app + image: ${{ steps.build-image.outputs.image }} + + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: crest-github-cd + cluster: default + wait-for-service-stability: true From 94812f600626ff02c5136afd3d355464a8b56095 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:13:20 +0800 Subject: [PATCH 016/172] Update aws.yml --- .github/workflows/aws.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 76b54b15..d8e17ea8 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -56,13 +56,8 @@ jobs: ECR_REPOSITORY: my-ecr-repo IMAGE_TAG: ${{ github.sha }} run: | - # Build a docker container and - # push it to ECR so that it can - # be deployed to ECS. - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - + npm install + npm run build - name: Fill in the new image ID in the Amazon ECS task definition id: task-def uses: aws-actions/amazon-ecs-render-task-definition@v1 From 726d07856f7635deff06cad6e89c9e5ffbeb1903 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:18:32 +0800 Subject: [PATCH 017/172] Update aws.yml --- .github/workflows/aws.yml | 62 ++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 36 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index d8e17ea8..156e2840 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -30,46 +30,36 @@ on: name: Deploy to Amazon ECS jobs: - deploy: - name: Deploy + build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v1 + - name: npm install and build webpack + run: | + npm install + npm run build + - uses: actions/upload-artifact@master + with: + name: webpack artifacts + path: public/ - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-southeast-1 + deploy: + name: Deploy Node.js app to AWS + needs: build + runs-on: ubuntu-latest - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 + steps: + - uses: actions/checkout@v1 - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: my-ecr-repo - IMAGE_TAG: ${{ github.sha }} - run: | - npm install - npm run build - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: sample-app - image: ${{ steps.build-image.outputs.image }} + - name: Download built artifact + uses: actions/download-artifact@master + with: + name: webpack artifacts + path: public - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: crest-github-cd - cluster: default - wait-for-service-stability: true + - name: Deploy to AWS + uses: github/deploy-nodejs@master + env: + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 3b8172d720c5123f29b9e3e3949c14578aa5a14c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:21:31 +0800 Subject: [PATCH 018/172] Create aws-config.yml --- .github/aws-config.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/aws-config.yml diff --git a/.github/aws-config.yml b/.github/aws-config.yml new file mode 100644 index 00000000..223c1973 --- /dev/null +++ b/.github/aws-config.yml @@ -0,0 +1,42 @@ + +########################################################## +# AWS Configuration file for NodeJS Deploy GitHub Action # +# # +# NOTE: This file holds the variables needed # +# to configure the GitHub Deploy NodeJS # +# on AWS Serverless # +# # +# This file needs to be in the location: # +# - .github/aws-config.yml # +# in your repository to be parsed at run time # +########################################################## + +######################################## +# AWS S3 Bucket for package and deploy # +######################################## +# NOTE: This bucket must exist before the GitHub Action, and match the name of your S3 bucket on Amazon +s3_bucket: crest-github-cd + +################################## +# AWS Cloud Formation Stack name # +################################## +# NOTE: Defaults to "mystack" if left empty +aws_stack_name: mystack + +#################### +# AWS SAM Template # +#################### +# NOTE: This is the AWS SAM template.yml file that we need to deploy +# Pathing is from root of repository: +# Example: +# if file is called `template.yml` and is in the root of repository +# under the '.github' folder: +# sam_template: .github/template.yml +sam_template: sam-template.yml + +################################ +# region for connection to AWS # +################################ +# Default region is: us-west-2 +# if not provided below +region: ap-southeast-1 From 3f5ee58388e881b7e94cdd2c0212cc7bfdada4c5 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:23:07 +0800 Subject: [PATCH 019/172] Create sam-template.yml --- sam-template.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 sam-template.yml diff --git a/sam-template.yml b/sam-template.yml new file mode 100644 index 00000000..1e500e5d --- /dev/null +++ b/sam-template.yml @@ -0,0 +1,52 @@ +Transform: 'AWS::Serverless-2016-10-31' +Resources: + + MainFunction: + # This resource creates a Lambda function. + Type: 'AWS::Serverless::Function' + + Properties: + + # This function uses the Nodejs v12 runtime. + Runtime: nodejs12.x + + # This is the Lambda function's handler. + Handler: handler.lambdaHandler + + # The location of the Lambda function code. + CodeUri: . + + # Event sources to attach to this function. In this case, we are attaching + # one API Gateway endpoint to the Lambda function. The function is + # called when a HTTP request is made to the API Gateway endpoint. + Events: + + MainPage: + # Define an API Gateway endpoint that responds to HTTP GET at /thumbnail + Type: Api + Properties: + Path: / + Method: GET + CSSFile: + # Define an API Gateway endpoint that responds to HTTP GET at /thumbnail + Type: Api + Properties: + Path: /public/index.css + Method: GET + JSFile: + # Define an API Gateway endpoint that responds to HTTP GET at /thumbnail + Type: Api + Properties: + Path: /public/main.js + Method: GET + +Outputs: + # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function + # Find out more about other implicit resources you can reference within SAM + # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api + StagingUrl: + Description: "Staging URL" + Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/" + + + From 681f17b67fbec05647207665a72c5613b25651ec Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:29:11 +0800 Subject: [PATCH 020/172] Update aws.yml --- .github/workflows/aws.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 156e2840..504e141d 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -37,6 +37,7 @@ jobs: - uses: actions/checkout@v1 - name: npm install and build webpack run: | + npm audit fix npm install npm run build - uses: actions/upload-artifact@master From 1b0aa5cdfd3ab823cc76c4b0195185d639b3b4fe Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:34:30 +0800 Subject: [PATCH 021/172] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a2937672..e9586b56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -942,7 +942,7 @@ "levn": "^0.3.0", "lodash": "^4.17.5", "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", + "mkdirp": "1.0.4", "natural-compare": "^1.4.0", "optionator": "^0.8.2", "path-is-inside": "^1.0.2", From 1388f294f173f85ceb81d8f5aa362f785f3181fa Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:51:03 +0800 Subject: [PATCH 022/172] Update aws.yml --- .github/workflows/aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 504e141d..36be5359 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -39,7 +39,7 @@ jobs: run: | npm audit fix npm install - npm run build + - uses: actions/upload-artifact@master with: name: webpack artifacts From edd7980e10274ebe5a305d03808793698d25f22f Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:54:39 +0800 Subject: [PATCH 023/172] Create sample.js --- dist/sample.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 dist/sample.js diff --git a/dist/sample.js b/dist/sample.js new file mode 100644 index 00000000..9df6e8d1 --- /dev/null +++ b/dist/sample.js @@ -0,0 +1 @@ +sampleFile From 2c098e034d059c5eb86d2a1c41806ca57cfb1ac7 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:54:58 +0800 Subject: [PATCH 024/172] Create sample_node.js --- dist/sample_node.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 dist/sample_node.js diff --git a/dist/sample_node.js b/dist/sample_node.js new file mode 100644 index 00000000..9df6e8d1 --- /dev/null +++ b/dist/sample_node.js @@ -0,0 +1 @@ +sampleFile From aab89d457d50ab5077571b4d3c57d2e8f8d2c436 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Sun, 19 Apr 2020 21:55:21 +0800 Subject: [PATCH 025/172] Update aws.yml --- .github/workflows/aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 36be5359..a5ca2d13 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -43,7 +43,7 @@ jobs: - uses: actions/upload-artifact@master with: name: webpack artifacts - path: public/ + path: dist/ deploy: name: Deploy Node.js app to AWS From f6915689511eb879049166f235165f4f29cf0860 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 15:14:28 +0800 Subject: [PATCH 026/172] Update aws.yml --- .github/workflows/aws.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index a5ca2d13..e9b5f5d6 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -23,9 +23,10 @@ # See the documentation for each action used below for the recommended IAM policies for this IAM user, # and best practices on handling the access key credentials. -on: - release: - types: [created] +on: + push: + branches: + - master name: Deploy to Amazon ECS From 3f73cfca9fa95801d65ee3a328c1d64e0c554e83 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 15:19:26 +0800 Subject: [PATCH 027/172] Update aws.yml --- .github/workflows/aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index e9b5f5d6..f4c445a3 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -24,7 +24,7 @@ # and best practices on handling the access key credentials. on: - push: + pull_request: branches: - master From 048c3694b1c324f4e4bba520492eb831074a9b09 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:44:03 +0800 Subject: [PATCH 028/172] Create appspec.yml --- appspec.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 appspec.yml diff --git a/appspec.yml b/appspec.yml new file mode 100644 index 00000000..810e1c8d --- /dev/null +++ b/appspec.yml @@ -0,0 +1,14 @@ +version: 0.0 +os: linux +files: + - source: /index.html + destination: /var/www/html/ +hooks: + BeforeInstall: + - location: deploy/before_install + timeout: 300 + runas: root + AfterInstall: + - location: deploy/restart_server + timeout: 300 + runas: root From e50841b5016fe1da6c766ae7415ddaea8bade0da Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:47:21 +0800 Subject: [PATCH 029/172] Create before_start.sh --- deploy/before_start.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 deploy/before_start.sh diff --git a/deploy/before_start.sh b/deploy/before_start.sh new file mode 100644 index 00000000..c51ca003 --- /dev/null +++ b/deploy/before_start.sh @@ -0,0 +1,4 @@ +#!/bin/sh +yum update +yum install -y httpd +service httpd start From 43562d9574bf08922cda72adc510b35daab4e871 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:48:25 +0800 Subject: [PATCH 030/172] Create after_start.sh --- deploy/after_start.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 deploy/after_start.sh diff --git a/deploy/after_start.sh b/deploy/after_start.sh new file mode 100644 index 00000000..327a2a5b --- /dev/null +++ b/deploy/after_start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +service httpd restart From 15fadd1185ce584f684dca6d68387bce37a6e0f8 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:57:43 +0800 Subject: [PATCH 031/172] Create before_start.sh --- deploy/before_install/before_start.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 deploy/before_install/before_start.sh diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh new file mode 100644 index 00000000..c51ca003 --- /dev/null +++ b/deploy/before_install/before_start.sh @@ -0,0 +1,4 @@ +#!/bin/sh +yum update +yum install -y httpd +service httpd start From a5ec39074f487cde510b5d87717fa385c6343f29 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 17:58:14 +0800 Subject: [PATCH 032/172] Create after_start.sh --- deploy/before_install/after_start.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 deploy/before_install/after_start.sh diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh new file mode 100644 index 00000000..327a2a5b --- /dev/null +++ b/deploy/before_install/after_start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +service httpd restart From 234374d1fa598e0026ae914e0477cbc3c2460d2b Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 18:42:26 +0800 Subject: [PATCH 033/172] Create aws1.yml --- .github/workflows/aws1.yml | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .github/workflows/aws1.yml diff --git a/.github/workflows/aws1.yml b/.github/workflows/aws1.yml new file mode 100644 index 00000000..e9e1029f --- /dev/null +++ b/.github/workflows/aws1.yml @@ -0,0 +1,80 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, when a release is created +# +# To use this workflow, you will need to complete the following set-up steps: +# +# 1. Create an ECR repository to store your images. +# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. +# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. +# Replace the value of `aws-region` in the workflow below with your repository's region. +# +# 2. Create an ECS task definition, an ECS cluster, and an ECS service. +# For example, follow the Getting Started guide on the ECS console: +# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun +# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. +# +# 3. Store your ECS task definition as a JSON file in your repository. +# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. +# Replace the value of `task-definition` in the workflow below with your JSON file's name. +# Replace the value of `container-name` in the workflow below with the name of the container +# in the `containerDefinitions` section of the task definition. +# +# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. +# See the documentation for each action used below for the recommended IAM policies for this IAM user, +# and best practices on handling the access key credentials. + +on: + release: + types: [created] + +name: Deploy to Amazon ECS + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-southeast-1 + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + - name: Build, tag, and push image to Amazon ECR + id: build-image + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: my-ecr-repo + IMAGE_TAG: ${{ github.sha }} + run: | + # Build a docker container and + # push it to ECR so that it can + # be deployed to ECS. + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + + - name: Fill in the new image ID in the Amazon ECS task definition + id: task-def + uses: aws-actions/amazon-ecs-render-task-definition@v1 + with: + task-definition: task-definition.json + container-name: sample-app + image: ${{ steps.build-image.outputs.image }} + + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: sample-app-service + cluster: CrestSupportDemoCluster + wait-for-service-stability: true From ad8ba4bd4904f0a5eff00c8c6a3f4c52b75d7ae9 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 18:42:54 +0800 Subject: [PATCH 034/172] Rename aws.yml to aws.yml.backuo --- .github/workflows/{aws.yml => aws.yml.backuo} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{aws.yml => aws.yml.backuo} (100%) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml.backuo similarity index 100% rename from .github/workflows/aws.yml rename to .github/workflows/aws.yml.backuo From 34eedd337b5713bacf9ab5da57c6dcc91e9a3815 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:10:13 +0800 Subject: [PATCH 035/172] Update appspec.yml --- appspec.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appspec.yml b/appspec.yml index 810e1c8d..4f50d3d0 100644 --- a/appspec.yml +++ b/appspec.yml @@ -5,10 +5,10 @@ files: destination: /var/www/html/ hooks: BeforeInstall: - - location: deploy/before_install + - location: deploy/before_install/before_start.sh timeout: 300 runas: root AfterInstall: - - location: deploy/restart_server + - location: deploy/before_install/after_start.sh timeout: 300 runas: root From 36b00f2fa1eb5422ccab6cac51a64ea54b3a78b1 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:13:07 +0800 Subject: [PATCH 036/172] Update appspec.yml --- appspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appspec.yml b/appspec.yml index 4f50d3d0..9e2d2bad 100644 --- a/appspec.yml +++ b/appspec.yml @@ -1,7 +1,7 @@ version: 0.0 os: linux files: - - source: /index.html + - source: / destination: /var/www/html/ hooks: BeforeInstall: From 7dda87d10a486b4bb71549e5027dd13f4fda0585 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:44:20 +0800 Subject: [PATCH 037/172] Update after_start.sh --- deploy/before_install/after_start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 327a2a5b..8cc8ebac 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,2 +1,3 @@ #!/bin/sh -service httpd restart +npm install +npm start From 4dd9c013c98d3a00b88e06dfd833df3e2c46a96d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:47:05 +0800 Subject: [PATCH 038/172] Update appspec.yml --- appspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appspec.yml b/appspec.yml index 9e2d2bad..cb13383b 100644 --- a/appspec.yml +++ b/appspec.yml @@ -2,7 +2,7 @@ version: 0.0 os: linux files: - source: / - destination: /var/www/html/ + destination: /opt/tonkotsu-nodejs/ hooks: BeforeInstall: - location: deploy/before_install/before_start.sh From 3375d0bcc4b4ce752cd27e36058bff3031839192 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:48:46 +0800 Subject: [PATCH 039/172] Update before_start.sh --- deploy/before_install/before_start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index c51ca003..20944eed 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,4 +1,4 @@ #!/bin/sh -yum update -yum install -y httpd -service httpd start +cd /opt/tonkotsu-nodejs +npm install +npm audit fix From 2f8eec5c74914d26d01dcfcdfc4e40243c359715 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:49:27 +0800 Subject: [PATCH 040/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 8cc8ebac..36ccf6d3 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,3 +1,3 @@ #!/bin/sh -npm install +cd /opt/tonkotsu-nodejs npm start From 2f4c96926d892556d7b355e651dca1302f5d1028 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:56:17 +0800 Subject: [PATCH 041/172] Update after_start.sh --- deploy/before_install/after_start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 36ccf6d3..25af03fc 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,3 +1,4 @@ #!/bin/sh +sudo -s cd /opt/tonkotsu-nodejs npm start From 16e7bfaebecd42658b2f0c2c432a424e7753addf Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:56:36 +0800 Subject: [PATCH 042/172] Update before_start.sh --- deploy/before_install/before_start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 20944eed..708f9512 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,4 +1,5 @@ #!/bin/sh +sudo -s cd /opt/tonkotsu-nodejs npm install npm audit fix From e6d96b6294a16c487dd5d174b62ab0f307b3b78c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:20:54 +0800 Subject: [PATCH 043/172] Update before_start.sh --- deploy/before_install/before_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 708f9512..7bf08d3d 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,5 +1,5 @@ #!/bin/sh -sudo -s +export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs npm install npm audit fix From 77149f8da0a3a2f9966f519d80eda2fa46502651 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:21:13 +0800 Subject: [PATCH 044/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 25af03fc..61f7e4c6 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,4 +1,4 @@ #!/bin/sh -sudo -s +export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs npm start From be2c87eff10c7e8a565a0476362b5c330a36ff58 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:23:21 +0800 Subject: [PATCH 045/172] Update before_start.sh --- deploy/before_install/before_start.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 7bf08d3d..86d55127 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,5 +1,2 @@ #!/bin/sh export PATH=/opt/nodejs/bin -cd /opt/tonkotsu-nodejs -npm install -npm audit fix From f3f404bd0626ee7a561393e35c544b243e7809b2 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:23:47 +0800 Subject: [PATCH 046/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 61f7e4c6..58102828 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,4 +1,6 @@ #!/bin/sh export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs +npm install +npm audit fix npm start From 558b3c7013d9925539e745d377cb24ce93e24396 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:25:45 +0800 Subject: [PATCH 047/172] Update before_start.sh --- deploy/before_install/before_start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 86d55127..972e8c98 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,2 +1,3 @@ #!/bin/sh export PATH=/opt/nodejs/bin +rm -rf /opt/tonkotsu-nodejs/* From 88dd2ff24f54ec3c7e068fa5aa5591ee154c50af Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:27:38 +0800 Subject: [PATCH 048/172] Update before_start.sh --- deploy/before_install/before_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 972e8c98..cba45628 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,3 +1,3 @@ #!/bin/sh export PATH=/opt/nodejs/bin -rm -rf /opt/tonkotsu-nodejs/* + From 69846264af764673a7eb69ba1ba72c7ff8584ca2 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:37:55 +0800 Subject: [PATCH 049/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 58102828..effc6883 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,6 +1,8 @@ #!/bin/sh export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs +npm cache clean --force npm install +npm update npm audit fix npm start From 12d1ace64c29d7b5c50e4b4302dc6f36e22109de Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:43:11 +0800 Subject: [PATCH 050/172] Update after_start.sh --- deploy/before_install/after_start.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index effc6883..1beff00f 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,8 +1,5 @@ #!/bin/sh export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs -npm cache clean --force npm install -npm update -npm audit fix npm start From b9fdb43fbda2d43a4cc3e1f1b4877bdd8b84e8f0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:47:04 +0800 Subject: [PATCH 051/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 1beff00f..190010db 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,5 +1,5 @@ #!/bin/sh export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs -npm install +npm install --save array-unique npm start From 5e44949f918f47966020e6ebd7ff5b92cb11b2ba Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 20:53:38 +0800 Subject: [PATCH 052/172] Update after_start.sh --- deploy/before_install/after_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 190010db..38a9f3a8 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,5 +1,5 @@ #!/bin/sh export PATH=/opt/nodejs/bin cd /opt/tonkotsu-nodejs -npm install --save array-unique -npm start +sudo npm install +sudo npm start From 0153b89c4a48cbe3722260405f1f7598eec56377 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 21:57:15 +0800 Subject: [PATCH 053/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index 38a9f3a8..e9d6358e 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -1,5 +1,5 @@ #!/bin/sh -export PATH=/opt/nodejs/bin + cd /opt/tonkotsu-nodejs sudo npm install sudo npm start From a2bb0976e205d816c3bbc47835ffaa4dcca805d8 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 21:58:10 +0800 Subject: [PATCH 054/172] Update before_start.sh --- deploy/before_install/before_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index cba45628..829303ea 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,3 +1,3 @@ #!/bin/sh -export PATH=/opt/nodejs/bin + From e4f93bbd45ba3a3506057de14358028a5cfd6102 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:18:51 +0800 Subject: [PATCH 055/172] Rename aws1.yml to aws1.yml.backup --- .github/workflows/{aws1.yml => aws1.yml.backup} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{aws1.yml => aws1.yml.backup} (100%) diff --git a/.github/workflows/aws1.yml b/.github/workflows/aws1.yml.backup similarity index 100% rename from .github/workflows/aws1.yml rename to .github/workflows/aws1.yml.backup From 8083d86784062d2a84a796eb189b60fa103e9f06 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:19:24 +0800 Subject: [PATCH 056/172] Rename nodejs.yml to nodejs.yml.backup --- .github/workflows/{nodejs.yml => nodejs.yml.backup} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{nodejs.yml => nodejs.yml.backup} (100%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml.backup similarity index 100% rename from .github/workflows/nodejs.yml rename to .github/workflows/nodejs.yml.backup From 14122a75aab48bd9bbea8e6be808094df26cd199 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:20:03 +0800 Subject: [PATCH 057/172] Rename nodejs_1.yml to nodejs_1.yml,backup --- .github/workflows/{nodejs_1.yml => nodejs_1.yml,backup} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{nodejs_1.yml => nodejs_1.yml,backup} (100%) diff --git a/.github/workflows/nodejs_1.yml b/.github/workflows/nodejs_1.yml,backup similarity index 100% rename from .github/workflows/nodejs_1.yml rename to .github/workflows/nodejs_1.yml,backup From 27c86a48ce467a38afa28dee6b4a5c622de9c506 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:25:38 +0800 Subject: [PATCH 058/172] Create copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/copyFileToServer.yml diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml new file mode 100644 index 00000000..0c1ef176 --- /dev/null +++ b/.github/workflows/copyFileToServer.yml @@ -0,0 +1,21 @@ +name: scp files +on: + commit: + branches: + - master +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: copy file via ssh password + uses: appleboy/scp-action@master + with: + host: "13.229.147.148" + username: "ec2-use" + password: "github@2020" + port: "22" + source: "/" + target: "/opt/tonkotsu-nodejs" From 97a2d57e5a75cb10a814c85a0d76dd547a5dd8b3 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:27:50 +0800 Subject: [PATCH 059/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 0c1ef176..a4d41c23 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,6 +1,6 @@ name: scp files on: - commit: + commit_comment: branches: - master jobs: From bb01298db43f2843697210af4581ce260ec75657 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:40:13 +0800 Subject: [PATCH 060/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index a4d41c23..989618f2 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,8 +1,5 @@ name: scp files -on: - commit_comment: - branches: - - master +on: [commit_comment] jobs: build: @@ -13,9 +10,9 @@ jobs: - name: copy file via ssh password uses: appleboy/scp-action@master with: - host: "13.229.147.148" - username: "ec2-use" - password: "github@2020" - port: "22" - source: "/" - target: "/opt/tonkotsu-nodejs" + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + source: "tests/a.txt,tests/b.txt" + target: "test" From 5e6e292e60e4033637d63316f68f49fbfed2407f Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:42:14 +0800 Subject: [PATCH 061/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 989618f2..f325ec39 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,5 +1,5 @@ name: scp files -on: [commit_comment] +on: [release] jobs: build: From 4f64a38e483e3e3413c1873f94c5e2732a0163da Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:47:23 +0800 Subject: [PATCH 062/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index f325ec39..b92bcbb2 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,5 +1,8 @@ name: scp files -on: [release] +on: + push: + branches: + - master jobs: build: @@ -10,9 +13,9 @@ jobs: - name: copy file via ssh password uses: appleboy/scp-action@master with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - source: "tests/a.txt,tests/b.txt" - target: "test" + host: "13.229.147.148" + username: "root" + password: "github@2020" + port: "22" + source: "/" + target: "/opt/tonkotsu-nodejs" From 1695649a2e04ddaec512eb91b24d9da8645e41a3 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:51:28 +0800 Subject: [PATCH 063/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index b92bcbb2..1165a09b 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -17,5 +17,5 @@ jobs: username: "root" password: "github@2020" port: "22" - source: "/" + source: "" target: "/opt/tonkotsu-nodejs" From cfd74d6fff8627ce33c5a52a6f9effe35f6fba92 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:53:58 +0800 Subject: [PATCH 064/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 1165a09b..5dbc80f3 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -17,5 +17,5 @@ jobs: username: "root" password: "github@2020" port: "22" - source: "" + source: "/dist" target: "/opt/tonkotsu-nodejs" From ffcf2344b525b1a7ebea203e8a3252cdbdeb9f4a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:05:18 +0800 Subject: [PATCH 065/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 45 ++++++++++++++++---------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 5dbc80f3..dec80478 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,21 +1,32 @@ -name: scp files -on: - push: - branches: - - master -jobs: +name: scp copy folder to remote via SSH + +on: + push +jobs: build: - name: Build runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master - - name: copy file via ssh password - uses: appleboy/scp-action@master - with: - host: "13.229.147.148" - username: "root" - password: "github@2020" - port: "22" - source: "/dist" - target: "/opt/tonkotsu-nodejs" + - name: setup demo + run: | + mkdir test + touch test/oof.txt + - name: Copy folder content recursively to remote + uses: garygrossgarten/github-action-scp@release + with: + local: "dist" + remote: "/opt/tonkotsu-nodejs" + host: "13.229.147.148" + username: root + password: github@2020 + - name: Copy single file to remote + uses: garygrossgarten/github-action-scp@release + with: + local: "dist" + remote: "/opt/tonkotsu-nodejs" + host: "13.229.147.148" + username: root + password: github@2020 + env: + CI: true From da75ed5f0b6e96ccaaa531cee059b879535d93ff Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:09:00 +0800 Subject: [PATCH 066/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index dec80478..f029e213 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -8,24 +8,21 @@ jobs: runs-on: ubuntu-latest steps: - - name: setup demo - run: | - mkdir test - touch test/oof.txt + - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "dist" - remote: "/opt/tonkotsu-nodejs" - host: "13.229.147.148" + local: dist + remote: /opt/tonkotsu-nodejs + host: 13.229.147.148 username: root password: github@2020 - name: Copy single file to remote uses: garygrossgarten/github-action-scp@release with: - local: "dist" - remote: "/opt/tonkotsu-nodejs" - host: "13.229.147.148" + local: dist + remote: /opt/tonkotsu-nodejs + host: 13.229.147.148 username: root password: github@2020 env: From af6d65a4f74f0e7aa6ca59673e3e2efbf66349bb Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:10:02 +0800 Subject: [PATCH 067/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index f029e213..f8e33cea 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -8,7 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - + - name: setup demo + run: | + mkdir test + touch test/oof.txt - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: From 2fa5f8fda3d129128a70b0b1e172408b0be4f80a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:11:57 +0800 Subject: [PATCH 068/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index f8e33cea..a07947e5 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -10,8 +10,8 @@ jobs: steps: - name: setup demo run: | - mkdir test - touch test/oof.txt + mkdir dist + touch dist/oof.txt - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: From 0fc003d9ffeb6819e88e2ef58e07d0c84caf27f6 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:14:38 +0800 Subject: [PATCH 069/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index a07947e5..49db54de 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -11,7 +11,7 @@ jobs: - name: setup demo run: | mkdir dist - touch dist/oof.txt + cp -r /* dist - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: From 3d9f19ada3da1e0ed93c3cc91bc54493956650de Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:16:20 +0800 Subject: [PATCH 070/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 49db54de..a3c2a080 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -11,7 +11,7 @@ jobs: - name: setup demo run: | mkdir dist - cp -r /* dist + cp -r * dist - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: From 4c9e7d94458c4a5683768cd94b8156ed33f5615c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:20:04 +0800 Subject: [PATCH 071/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index a3c2a080..cc39627e 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -8,10 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: setup demo - run: | - mkdir dist - cp -r * dist - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: @@ -20,13 +16,5 @@ jobs: host: 13.229.147.148 username: root password: github@2020 - - name: Copy single file to remote - uses: garygrossgarten/github-action-scp@release - with: - local: dist - remote: /opt/tonkotsu-nodejs - host: 13.229.147.148 - username: root - password: github@2020 env: CI: true From 5d99760c0908187fd6713e43c59d529fb8a125de Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:34:17 +0800 Subject: [PATCH 072/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index cc39627e..17f45c3a 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -9,10 +9,10 @@ jobs: steps: - name: Copy folder content recursively to remote - uses: garygrossgarten/github-action-scp@release + uses: ./ with: - local: dist - remote: /opt/tonkotsu-nodejs + local: "dist" + remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root password: github@2020 From e5bdc2b79195bc8db1e5aba17f42ba484a0456b2 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:37:14 +0800 Subject: [PATCH 073/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 17f45c3a..61396fc9 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -8,6 +8,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v1 + - name: Copy folder content recursively to remote uses: ./ with: From a1220bf7b19c15be9cf170b88c4bfe39ed730572 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:38:26 +0800 Subject: [PATCH 074/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 61396fc9..1e59253f 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v1 - name: Copy folder content recursively to remote - uses: ./ + uses: garygrossgarten/github-action-scp@release with: local: "dist" remote: "/opt/tonkotsu-nodejs" From 1d3da5b65c39e28cc8b743d9d2553aa3bd874d56 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:39:30 +0800 Subject: [PATCH 075/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 1e59253f..05643945 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "dist" + local: "" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From 6f4a2a2037530aeb4fe913b8eb3930879c94b1b0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:40:31 +0800 Subject: [PATCH 076/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 05643945..3fa876ae 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "" + local: "/" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From d7b155fc5acbe21fe0758c0575eb80a56a551302 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:41:39 +0800 Subject: [PATCH 077/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 3fa876ae..096d3775 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "/" + local: "workshop-tonkotsu-nodejs" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From 53cdb7974f7c7a36a93d0fa9bb63b3f2ab70612b Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:44:25 +0800 Subject: [PATCH 078/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 096d3775..4fc0a6a1 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "workshop-tonkotsu-nodejs" + local: "/workshop-tonkotsu-nodejs" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From b16080d2fbedfdfd645460c5d3bac5d4f78f1b53 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:46:18 +0800 Subject: [PATCH 079/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 4fc0a6a1..9a543853 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "/workshop-tonkotsu-nodejs" + local: "workshop-tonkotsu-nodejs/dist" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From 69e9f28ff5a802bcc596d0dd96a6b222a11f6ccd Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:47:12 +0800 Subject: [PATCH 080/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 9a543853..1e59253f 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "workshop-tonkotsu-nodejs/dist" + local: "dist" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From 71c2f1afe4a99c983cc36fc97b95f43cbdbf1d2a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:48:23 +0800 Subject: [PATCH 081/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 1e59253f..040c1791 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "dist" + local: "../dist" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From 288a8ce64659bff608ea9a80c8db150ce5330826 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:49:05 +0800 Subject: [PATCH 082/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 040c1791..7ec455a6 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "../dist" + local: "/dist" remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From a100c6ea4c817b747d9e7659cef07366eaa48743 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:52:02 +0800 Subject: [PATCH 083/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 7ec455a6..8d1d4d93 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: - local: "/dist" + local: "." remote: "/opt/tonkotsu-nodejs" host: 13.229.147.148 username: root From cf1f7cc12442ba5ec55ad9788e0afb4d5d6294e0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 00:59:17 +0800 Subject: [PATCH 084/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 8d1d4d93..ac1aa249 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -21,3 +21,17 @@ jobs: password: github@2020 env: CI: true + + - name: ls -a via ssh + uses: fifsky/ssh-action@master + with: + command: | + cd /opt/tonkotsu-nodejs + npm install + npm start + host: 13.229.147.148 + username: root + password: github@2020 + env: + CI: true + From e0c050c7d6e01bc9b1a0b1203c2881dfbf4b3b3a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 01:11:04 +0800 Subject: [PATCH 085/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index ac1aa249..e12d2d54 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -27,7 +27,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - npm install + npm start host: 13.229.147.148 username: root From 5de7d09c8d71122de80abc5efb0f3b31af5c098e Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 02:42:45 +0800 Subject: [PATCH 086/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index e12d2d54..f8864643 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -27,8 +27,8 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - - npm start + npm install > SomeFile.txt + npm start > SomeFile.txt host: 13.229.147.148 username: root password: github@2020 From 38a2c3016610f2f67091a5c705ca22b4424f1554 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:04:45 +0800 Subject: [PATCH 087/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index f8864643..06a00bd3 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -4,8 +4,12 @@ on: push jobs: - build: + linux: + name: Linux build on node v12.16.2 runs-on: ubuntu-latest + strategy: + matrix: + node_version: [10.x, 12.x] steps: - name: checkout @@ -22,16 +26,16 @@ jobs: env: CI: true - - name: ls -a via ssh - uses: fifsky/ssh-action@master + - name: Set Node.js version 5 + uses: actions/setup-node@v1 with: - command: | - cd /opt/tonkotsu-nodejs - npm install > SomeFile.txt - npm start > SomeFile.txt - host: 13.229.147.148 - username: root - password: github@2020 + node-version: v12.16.2 + + - name: Install packages + run: npm install + - name: Run build + run: npm start + env: CI: true From 6ceb5a01892ec070b22169e5f248847075f83a64 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:12:59 +0800 Subject: [PATCH 088/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 06a00bd3..3798d2f2 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: [10.x, 12.x] + node_version: [8.x, 10.x] steps: - name: checkout @@ -33,6 +33,7 @@ jobs: - name: Install packages run: npm install + - name: Run build run: npm start From 8efb209c92fadbb7590c06a95c88544fd8a7b8f4 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:18:44 +0800 Subject: [PATCH 089/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 3798d2f2..fd66f527 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -26,7 +26,7 @@ jobs: env: CI: true - - name: Set Node.js version 5 + - name: Set Node.js version v12.16.2 uses: actions/setup-node@v1 with: node-version: v12.16.2 From 5ea70ae8f8de19d18c613fd55cd27f0b27edf213 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:26:28 +0800 Subject: [PATCH 090/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index fd66f527..0201c134 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -33,9 +33,11 @@ jobs: - name: Install packages run: npm install + working-directory: "/opt/tonkotsu-nodejs" - name: Run build run: npm start + working-directory: "/opt/tonkotsu-nodejs" env: CI: true From a1374d6d4d39b320b8734d3a556f443169c84b60 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:34:50 +0800 Subject: [PATCH 091/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 37 +++++++++++++++----------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 0201c134..ff922579 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -4,12 +4,8 @@ on: push jobs: - linux: - name: Linux build on node v12.16.2 + build: runs-on: ubuntu-latest - strategy: - matrix: - node_version: [8.x, 10.x] steps: - name: checkout @@ -26,19 +22,28 @@ jobs: env: CI: true - - name: Set Node.js version v12.16.2 - uses: actions/setup-node@v1 + - name: ls -a via ssh + uses: fifsky/ssh-action@master with: - node-version: v12.16.2 + command: | + cd /opt/tonkotsu-nodejs + npm install > SomeFile.txt + npm start > SomeFile.txt + host: 13.229.147.148 + username: root + password: github@2020 - - name: Install packages - run: npm install - working-directory: "/opt/tonkotsu-nodejs" - - - name: Run build - run: npm start - working-directory: "/opt/tonkotsu-nodejs" - + - name: ls -a via ssh + uses: fifsky/ssh-action@master + with: + command: | + cd /opt/tonkotsu-nodejs + npm install > SomeFile.txt + npm start > SomeFile.txt + host: 13.229.147.148 + username: root + password: github@2020 env: CI: true + From d471ef9279944e1a8c9b209ed687529505cc4864 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:55:47 +0800 Subject: [PATCH 092/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index ff922579..8aeb423a 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -31,18 +31,8 @@ jobs: npm start > SomeFile.txt host: 13.229.147.148 username: root - password: github@2020 - - - name: ls -a via ssh - uses: fifsky/ssh-action@master - with: - command: | - cd /opt/tonkotsu-nodejs - npm install > SomeFile.txt - npm start > SomeFile.txt - host: 13.229.147.148 - username: root - password: github@2020 + passphrase: ${{ secrets.PASSPHRASE }} + privateKey: ${{ secrets.PRIVATE_KEY}} env: CI: true From 350e8ecc6ead1f522232cab0ec7b4ddedb41e4cd Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 03:58:15 +0800 Subject: [PATCH 093/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 8aeb423a..54e2a633 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -31,7 +31,7 @@ jobs: npm start > SomeFile.txt host: 13.229.147.148 username: root - passphrase: ${{ secrets.PASSPHRASE }} + passphrase: ${{ secrets.passphrase }} privateKey: ${{ secrets.PRIVATE_KEY}} env: CI: true From b6338723c58a3c67b374350e1d3531944d4a07f4 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 04:01:50 +0800 Subject: [PATCH 094/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 54e2a633..89ac6df7 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -22,7 +22,7 @@ jobs: env: CI: true - - name: ls -a via ssh + - name: ls -a via ssh1 uses: fifsky/ssh-action@master with: command: | From 0528731079d06a67dcdbeccfec20d7c6c66e62b5 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 11:40:07 +0800 Subject: [PATCH 095/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 89ac6df7..d95f35d7 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -11,28 +11,17 @@ jobs: - name: checkout uses: actions/checkout@v1 - - name: Copy folder content recursively to remote - uses: garygrossgarten/github-action-scp@release - with: - local: "." - remote: "/opt/tonkotsu-nodejs" - host: 13.229.147.148 - username: root - password: github@2020 - env: - CI: true + - name: ls -a via ssh1 uses: fifsky/ssh-action@master with: command: | cd /opt/tonkotsu-nodejs - npm install > SomeFile.txt - npm start > SomeFile.txt + ll host: 13.229.147.148 username: root - passphrase: ${{ secrets.passphrase }} - privateKey: ${{ secrets.PRIVATE_KEY}} + password: github@2020 env: CI: true From f5ded1755b985ac1101b1c4aa53f4926a3220396 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 11:47:49 +0800 Subject: [PATCH 096/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index d95f35d7..6e7c6a42 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -14,7 +14,7 @@ jobs: - name: ls -a via ssh1 - uses: fifsky/ssh-action@master + uses: garygrossgarten/github-action-ssh@release with: command: | cd /opt/tonkotsu-nodejs From 166a5395480981781147937eadbf0066a525b932 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:02:54 +0800 Subject: [PATCH 097/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 6e7c6a42..a1eb1d0e 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -18,7 +18,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - ll + ls -a host: 13.229.147.148 username: root password: github@2020 From 23c6e3a0261262f9920c18993285db27a6197916 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:04:40 +0800 Subject: [PATCH 098/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index a1eb1d0e..6e7c6a42 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -18,7 +18,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - ls -a + ll host: 13.229.147.148 username: root password: github@2020 From 9ceb461d9b498687564fa5fbe40c1fab48e51a71 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:06:10 +0800 Subject: [PATCH 099/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 6e7c6a42..b0d1c691 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -18,7 +18,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - ll + pwd host: 13.229.147.148 username: root password: github@2020 From f59a20ca59dbf28aa4e0830b799741e8d3e2b809 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:07:04 +0800 Subject: [PATCH 100/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index b0d1c691..e2dae43c 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -18,7 +18,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - pwd + npm install host: 13.229.147.148 username: root password: github@2020 From 7bf721a2a55a2dc60664d7f4cb29d17c47e0b72d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:23:28 +0800 Subject: [PATCH 101/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index e2dae43c..98c85864 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -11,14 +11,24 @@ jobs: - name: checkout uses: actions/checkout@v1 - + - name: Copy folder content recursively to remote + uses: garygrossgarten/github-action-scp@release + with: + local: "." + remote: "/opt/tonkotsu-nodejs" + host: 13.229.147.148 + username: root + password: github@2020 + env: + CI: true - name: ls -a via ssh1 uses: garygrossgarten/github-action-ssh@release with: command: | cd /opt/tonkotsu-nodejs - npm install + npm install > SomeFile.txt + npm start > SomeFile.txt host: 13.229.147.148 username: root password: github@2020 From 21b487bf315778b7efed05d30454f4b06c5ffb1d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:30:10 +0800 Subject: [PATCH 102/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 98c85864..35663294 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -27,8 +27,8 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - npm install > SomeFile.txt - npm start > SomeFile.txt + npm install + npm start host: 13.229.147.148 username: root password: github@2020 From 93424447db78084c6578495da00876ca937c5581 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:34:07 +0800 Subject: [PATCH 103/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 35663294..f106688d 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -27,8 +27,8 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - npm install - npm start + npm install & + npm start & host: 13.229.147.148 username: root password: github@2020 From eab8f2d6322551eaa2449e694fee59b47d6daa0a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 12:41:34 +0800 Subject: [PATCH 104/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index f106688d..35663294 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -27,8 +27,8 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - npm install & - npm start & + npm install + npm start host: 13.229.147.148 username: root password: github@2020 From bf11af65dc512fd0c297ab7ca8283d6ef2cb9080 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 13:45:20 +0800 Subject: [PATCH 105/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 35663294..a70fd36f 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -22,7 +22,7 @@ jobs: env: CI: true - - name: ls -a via ssh1 + - name: ls -a via ssh uses: garygrossgarten/github-action-ssh@release with: command: | From 38e40530e6b5fcadc82d35982d0e1404bf0e5188 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 13:51:05 +0800 Subject: [PATCH 106/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index a70fd36f..25885a5b 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout1 uses: actions/checkout@v1 - name: Copy folder content recursively to remote From 30a4625105e2dfc8f7e9d5721f2abd1802e1bc80 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 14:14:23 +0800 Subject: [PATCH 107/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index 25885a5b..d8c48719 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -10,7 +10,17 @@ jobs: steps: - name: checkout1 uses: actions/checkout@v1 - + - name: Removeing the old distribution + uses: garygrossgarten/github-action-ssh@release + with: + command: | + cd /opt/tonkotsu-nodejs + rm -rf * + host: 13.229.147.148 + username: root + password: github@2020 + env: + CI: true - name: Copy folder content recursively to remote uses: garygrossgarten/github-action-scp@release with: @@ -22,13 +32,13 @@ jobs: env: CI: true - - name: ls -a via ssh + - name: Install the module and Run server uses: garygrossgarten/github-action-ssh@release with: command: | cd /opt/tonkotsu-nodejs - npm install - npm start + npm install + npm start /dev/null & host: 13.229.147.148 username: root password: github@2020 From 2e4a1c2c6154d0e2d536688d1bae3d1e5e6e6ff1 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 15:28:50 +0800 Subject: [PATCH 108/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index d8c48719..de059e19 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -15,6 +15,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs + kill all node rm -rf * host: 13.229.147.148 username: root From e156798561da0ce998527fc308dc1299c9ab3d01 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 15:30:20 +0800 Subject: [PATCH 109/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index de059e19..e9318606 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -15,7 +15,7 @@ jobs: with: command: | cd /opt/tonkotsu-nodejs - kill all node + killall node rm -rf * host: 13.229.147.148 username: root From 354d4703faf26aa61d670bb120a74666f65ae2cc Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 16:45:37 +0800 Subject: [PATCH 110/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index e7d469fe..c1030b95 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository. + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Deploy pre #{zen.msg} footer.wrap From b6cf7def4c44ba6fd9946660d3bb41aa9495fa83 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 16:49:40 +0800 Subject: [PATCH 111/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index c1030b95..b72acda3 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Deploy + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Stage pre #{zen.msg} footer.wrap From 61ed327837ab1e89c4880fb4852719da39c7b7d5 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 17:19:09 +0800 Subject: [PATCH 112/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index b72acda3..c7eccd09 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Stage + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Master pre #{zen.msg} footer.wrap From d68290aa6a76a5df5bc80e4341a711f41fe9debe Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 17:21:27 +0800 Subject: [PATCH 113/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index c7eccd09..c1030b95 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Master + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Deploy pre #{zen.msg} footer.wrap From 7f2920cc483826d3efc19a712575f878819b1f1a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 24 Apr 2020 17:32:16 +0800 Subject: [PATCH 114/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index c1030b95..c7eccd09 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Deploy + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Master pre #{zen.msg} footer.wrap From 11d6d5bbfd53e9a7a3ef170a781ee9e4232e6793 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Mon, 27 Apr 2020 12:36:56 +0800 Subject: [PATCH 115/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index e9318606..fc00690f 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -33,7 +33,7 @@ jobs: env: CI: true - - name: Install the module and Run server + - name: Install the module and Run stagging server uses: garygrossgarten/github-action-ssh@release with: command: | From 31b36a410a0e3df2ca7f0c80b3fdc593be296bca Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 12:25:59 +0800 Subject: [PATCH 116/172] Update and rename aws1.yml.backup to aws_s3.yml --- .github/workflows/{aws1.yml.backup => aws_s3.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{aws1.yml.backup => aws_s3.yml} (98%) diff --git a/.github/workflows/aws1.yml.backup b/.github/workflows/aws_s3.yml similarity index 98% rename from .github/workflows/aws1.yml.backup rename to .github/workflows/aws_s3.yml index e9e1029f..f2cf86fe 100644 --- a/.github/workflows/aws1.yml.backup +++ b/.github/workflows/aws_s3.yml @@ -76,5 +76,5 @@ jobs: with: task-definition: ${{ steps.task-def.outputs.task-definition }} service: sample-app-service - cluster: CrestSupportDemoCluster + cluster: default wait-for-service-stability: true From ac974d0c2b3952bec8d701c7c272c77f9cb05b3f Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 12:30:00 +0800 Subject: [PATCH 117/172] Rename copyFileToServer.yml to copyFileToServer.yml.remove --- .../{copyFileToServer.yml => copyFileToServer.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml => copyFileToServer.yml.remove} (100%) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml.remove similarity index 100% rename from .github/workflows/copyFileToServer.yml rename to .github/workflows/copyFileToServer.yml.remove From 56c0d84411ba05e2b01e69b29a365ee7c59d425c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 12:38:52 +0800 Subject: [PATCH 118/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 69 +++++++++++++++--------------------- 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index f2cf86fe..ff749309 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -30,51 +30,38 @@ on: name: Deploy to Amazon ECS jobs: - deploy: - name: Deploy + build: + if: contains(github.event.pull_request.labels.*.name, 'stage') + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-southeast-1 + - uses: actions/checkout@v1 + - name: npm install and build webpack + run: | + npm install + npm run build + - uses: actions/upload-artifact@master + with: + name: webpack artifacts + path: public/ - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 + deploy: + name: Deploy Node.js app to AWS + needs: build + runs-on: ubuntu-latest - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: my-ecr-repo - IMAGE_TAG: ${{ github.sha }} - run: | - # Build a docker container and - # push it to ECR so that it can - # be deployed to ECS. - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" + steps: + - uses: actions/checkout@v1 - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: sample-app - image: ${{ steps.build-image.outputs.image }} + - name: Download built artifact + uses: actions/download-artifact@master + with: + name: webpack artifacts + path: public - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: sample-app-service - cluster: default - wait-for-service-stability: true + - name: Deploy to AWS + uses: github/deploy-nodejs@master + env: + AWS_ACCESS_KEY: ${{ secrets.Access_key_ID }} + AWS_SECRET_KEY: ${{ secrets.Secret_access_key }} From 426d4d7123ff5ce089d63a068ca654c5b3b69478 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 12:43:10 +0800 Subject: [PATCH 119/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index ff749309..a5ca2d13 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -31,20 +31,19 @@ name: Deploy to Amazon ECS jobs: build: - if: contains(github.event.pull_request.labels.*.name, 'stage') - runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: npm install and build webpack run: | + npm audit fix npm install - npm run build + - uses: actions/upload-artifact@master with: name: webpack artifacts - path: public/ + path: dist/ deploy: name: Deploy Node.js app to AWS @@ -61,7 +60,7 @@ jobs: path: public - name: Deploy to AWS - uses: github/deploy-nodejs@master + uses: github/deploy-nodejs@master env: - AWS_ACCESS_KEY: ${{ secrets.Access_key_ID }} - AWS_SECRET_KEY: ${{ secrets.Secret_access_key }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 6b7de48f036da53f9d68e526f007e61cb4d71603 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 15:22:42 +0800 Subject: [PATCH 120/172] Update after_start.sh --- deploy/before_install/after_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/before_install/after_start.sh b/deploy/before_install/after_start.sh index e9d6358e..0291f960 100644 --- a/deploy/before_install/after_start.sh +++ b/deploy/before_install/after_start.sh @@ -2,4 +2,4 @@ cd /opt/tonkotsu-nodejs sudo npm install -sudo npm start +sudo npm start /dev/null & From 3087862c6bc694a103bc4c92be1998ebbd78a947 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 15:29:02 +0800 Subject: [PATCH 121/172] Update before_start.sh --- deploy/before_install/before_start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/before_install/before_start.sh b/deploy/before_install/before_start.sh index 829303ea..28bdd73f 100644 --- a/deploy/before_install/before_start.sh +++ b/deploy/before_install/before_start.sh @@ -1,3 +1,5 @@ #!/bin/sh - +cd /opt/tonkotsu-nodejs +killall node +rm -rf * From f7a5b2bfaafccca814d4e4fce94050037dfdb842 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 16:55:11 +0800 Subject: [PATCH 122/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index c7eccd09..f030b65a 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test Master + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS pre #{zen.msg} footer.wrap From 833e34084eb43f95c9d60a7795080e52e5237b9a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 17:01:25 +0800 Subject: [PATCH 123/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index f030b65a..aa7128d2 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS again pre #{zen.msg} footer.wrap From 518c823330a647fc707d31bf61cd7afd7f661323 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 18:01:46 +0800 Subject: [PATCH 124/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index aa7128d2..e56fb5fd 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS again + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS prod pre #{zen.msg} footer.wrap From 7463c48ceab187e97f8fc81a6b99d833a9d2146d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 18:35:43 +0800 Subject: [PATCH 125/172] Update aws-config.yml --- .github/aws-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/aws-config.yml b/.github/aws-config.yml index 223c1973..98d9ff15 100644 --- a/.github/aws-config.yml +++ b/.github/aws-config.yml @@ -15,7 +15,7 @@ # AWS S3 Bucket for package and deploy # ######################################## # NOTE: This bucket must exist before the GitHub Action, and match the name of your S3 bucket on Amazon -s3_bucket: crest-github-cd +s3_bucket: crest-github-cd/aws-github-stage.zip ################################## # AWS Cloud Formation Stack name # From d993f8d70fccb83b662db3f3afcd3b1d949ba661 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:01:40 +0800 Subject: [PATCH 126/172] Update aws-config.yml --- .github/aws-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/aws-config.yml b/.github/aws-config.yml index 98d9ff15..b836d2e1 100644 --- a/.github/aws-config.yml +++ b/.github/aws-config.yml @@ -15,7 +15,7 @@ # AWS S3 Bucket for package and deploy # ######################################## # NOTE: This bucket must exist before the GitHub Action, and match the name of your S3 bucket on Amazon -s3_bucket: crest-github-cd/aws-github-stage.zip +s3_bucket: crest-github-cd/{datetime}.zip ################################## # AWS Cloud Formation Stack name # From bfb27fe8830a6481a75ff9df12df90977e0756de Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:15:19 +0800 Subject: [PATCH 127/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index a5ca2d13..4a971ada 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -24,8 +24,9 @@ # and best practices on handling the access key credentials. on: - release: - types: [created] + push: + branches: + - master name: Deploy to Amazon ECS @@ -64,3 +65,4 @@ jobs: env: AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_S3_BUCKET: "crest-github-cd/aws-github-prod.zip" From 7979dc2c5643783eb44a63912430f19debdf771e Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:19:42 +0800 Subject: [PATCH 128/172] Rename aws-config.yml to aws-config.yml.backup --- .github/{aws-config.yml => aws-config.yml.backup} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{aws-config.yml => aws-config.yml.backup} (100%) diff --git a/.github/aws-config.yml b/.github/aws-config.yml.backup similarity index 100% rename from .github/aws-config.yml rename to .github/aws-config.yml.backup From 42d29431793e0eedf45e2f8e2d9f0aef7e560392 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:21:00 +0800 Subject: [PATCH 129/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index 4a971ada..4653f7f1 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -65,4 +65,5 @@ jobs: env: AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_S3_BUCKET: "crest-github-cd/aws-github-prod.zip" + AWS_S3_BUCKET: crest-github-cd/aws-github-prod.zip + AWS_REGION: ap-southeast-1 From 4f0925537c188d5cbe69ede0016363c40e5e844e Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:24:57 +0800 Subject: [PATCH 130/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index 4653f7f1..9b87ae23 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -61,7 +61,7 @@ jobs: path: public - name: Deploy to AWS - uses: github/deploy-nodejs@master + uses: jakejarvis/s3-sync-action@master env: AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 1d5013525819c474fc837cfc64c7ec3b7aac5dd8 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:34:39 +0800 Subject: [PATCH 131/172] Update aws_s3.yml --- .github/workflows/aws_s3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml index 9b87ae23..c5ad5928 100644 --- a/.github/workflows/aws_s3.yml +++ b/.github/workflows/aws_s3.yml @@ -61,7 +61,7 @@ jobs: path: public - name: Deploy to AWS - uses: jakejarvis/s3-sync-action@master + uses: github/deploy-nodejs@master env: AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From a305f7fe3d2b6913b4232c58ddff1924a382ff7c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 28 Apr 2020 19:35:16 +0800 Subject: [PATCH 132/172] Update and rename aws-config.yml.backup to aws-config.yml --- .github/{aws-config.yml.backup => aws-config.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/{aws-config.yml.backup => aws-config.yml} (97%) diff --git a/.github/aws-config.yml.backup b/.github/aws-config.yml similarity index 97% rename from .github/aws-config.yml.backup rename to .github/aws-config.yml index b836d2e1..49fc82dd 100644 --- a/.github/aws-config.yml.backup +++ b/.github/aws-config.yml @@ -15,7 +15,7 @@ # AWS S3 Bucket for package and deploy # ######################################## # NOTE: This bucket must exist before the GitHub Action, and match the name of your S3 bucket on Amazon -s3_bucket: crest-github-cd/{datetime}.zip +#s3_bucket: crest-github-cd/{datetime}.zip ################################## # AWS Cloud Formation Stack name # From cfa9857dfcf606259af953f14fc7dd861db02ac0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 30 Jul 2020 19:43:13 +0800 Subject: [PATCH 133/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index e56fb5fd..d9eed91d 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository.Test AWS prod + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository pre #{zen.msg} footer.wrap From 6817ed80d3f80217c7678b8715aa895e9f3c398f Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Mon, 3 Aug 2020 14:01:21 +0800 Subject: [PATCH 134/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index d9eed91d..a503e460 100644 --- a/views/index.pug +++ b/views/index.pug @@ -12,7 +12,7 @@ html main.wrap h1 Hello 🌎! hr - p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository + p This is our Tonkotsu 🍜 NodeJS webapp. You can find instructions inside the repository-demo pre #{zen.msg} footer.wrap From 2114f915c4e2050212e914f0faf17f980b76fe1d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:05:42 +0800 Subject: [PATCH 135/172] Rename aws-config.yml to aws-config.yml.remove --- .github/{aws-config.yml => aws-config.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{aws-config.yml => aws-config.yml.remove} (100%) diff --git a/.github/aws-config.yml b/.github/aws-config.yml.remove similarity index 100% rename from .github/aws-config.yml rename to .github/aws-config.yml.remove From 1ceb96299c890a984cde395a8c6a75b3bb2ea4ea Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:06:15 +0800 Subject: [PATCH 136/172] Rename aws_s3.yml to aws_s3.yml.remove --- .github/workflows/{aws_s3.yml => aws_s3.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{aws_s3.yml => aws_s3.yml.remove} (100%) diff --git a/.github/workflows/aws_s3.yml b/.github/workflows/aws_s3.yml.remove similarity index 100% rename from .github/workflows/aws_s3.yml rename to .github/workflows/aws_s3.yml.remove From 66b5b484396e4189aec9040e38337be07c577b1d Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:25:39 +0800 Subject: [PATCH 137/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e3fb01e..7711de8f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. -This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g.: +This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g. ### Demo (sucess) From a04d3b8a0dc71cb64d69c87abd1d2e78db1dd3b1 Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:27:22 +0800 Subject: [PATCH 138/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index a503e460..6c971f23 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") GitHub Partners + a(href="#") Crest Infosolution .right a(href="#") Docs a(href="#") About From 013b86f755477eda550b35c5f23c275734ea1afe Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:37:47 +0800 Subject: [PATCH 139/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 6c971f23..8c215809 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") Crest Infosolution + a(href="https://crestsolution.com") Crest Infosolution .right a(href="#") Docs a(href="#") About From 53d949b12ef2a82cc3e4a7f68c957931d170353f Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:44:27 +0800 Subject: [PATCH 140/172] Update nodejs.yml.backup --- .github/workflows/nodejs.yml.backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml.backup b/.github/workflows/nodejs.yml.backup index 4390e930..922edc61 100644 --- a/.github/workflows/nodejs.yml.backup +++ b/.github/workflows/nodejs.yml.backup @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ master,devlopment ] pull_request: - branches: [ master ] + branches: [ master,devlopment ] jobs: build: From 738045512bcfda8264ebb107b3ee84a4b7d0951a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 14:04:39 +0800 Subject: [PATCH 141/172] Rename nodejs.yml.backup to nodejs.yml --- .github/workflows/{nodejs.yml.backup => nodejs.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{nodejs.yml.backup => nodejs.yml} (100%) diff --git a/.github/workflows/nodejs.yml.backup b/.github/workflows/nodejs.yml similarity index 100% rename from .github/workflows/nodejs.yml.backup rename to .github/workflows/nodejs.yml From b966b7969fb9f3914080e343db47743a08c8374b Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 14:08:14 +0800 Subject: [PATCH 142/172] Update nodejs.yml --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 922edc61..e2b2b06f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master,devlopment ] + branches: [ devlopment ] pull_request: - branches: [ master,devlopment ] + branches: [devlopment ] jobs: build: From 55a4dc9fee8612c0f8d4915b5cd69eddeeb3d82d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 14:08:25 +0800 Subject: [PATCH 143/172] Update nodejs.yml --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e2b2b06f..fd1ecaf1 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -5,7 +5,7 @@ name: Node.js CI on: push: - branches: [ devlopment ] + branches: [devlopment ] pull_request: branches: [devlopment ] From 590aaeb1ed9a4273e325b55427ed21c443c75ef0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:00:51 +0800 Subject: [PATCH 144/172] Create node.js.yml --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..39fcd1aa --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ Devlopment ] + pull_request: + branches: [ Devlopment ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 98b11171f0ed70cbe86543a2ee2d7e8fe6cb603d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:01:20 +0800 Subject: [PATCH 145/172] Rename nodejs.yml to nodejs.yml.remove --- .github/workflows/{nodejs.yml => nodejs.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{nodejs.yml => nodejs.yml.remove} (100%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml.remove similarity index 100% rename from .github/workflows/nodejs.yml rename to .github/workflows/nodejs.yml.remove From dd431e06d12cb09c4011b9b6b0cf5af5f4885fde Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:08:38 +0800 Subject: [PATCH 146/172] Rename copyFileToServer.yml.remove to copyFileToServer.yml --- .../{copyFileToServer.yml.remove => copyFileToServer.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml.remove => copyFileToServer.yml} (100%) diff --git a/.github/workflows/copyFileToServer.yml.remove b/.github/workflows/copyFileToServer.yml similarity index 100% rename from .github/workflows/copyFileToServer.yml.remove rename to .github/workflows/copyFileToServer.yml From a701258235d4af4b12d25a674aadcbe52e7af7cf Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:09:57 +0800 Subject: [PATCH 147/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7711de8f..5e3fb01e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. -This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g. +This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g.: ### Demo (sucess) From 142b343b547b3e82b2e852eb6adf1b6212360fd8 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:12:31 +0800 Subject: [PATCH 148/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e3fb01e..7711de8f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. -This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g.: +This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g. ### Demo (sucess) From b56c001d0e85db772bee1500e5f2c415fd8e7eef Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:27:04 +0800 Subject: [PATCH 149/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 8c215809..4188f022 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,7 +1,7 @@ html head style - include stylize.css + include stylize.css1 body header.wrap nav From e934d9102555ff37ad1064a5c568929ef934d44a Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:31:03 +0800 Subject: [PATCH 150/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 4188f022..455df9a7 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,7 +1,7 @@ html head style - include stylize.css1 + include stylize.css body header.wrap nav From e33820f8d4fb29a82991d828675203da8150fd2c Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:32:49 +0800 Subject: [PATCH 151/172] Rename copyFileToServer.yml to copyFileToServer.yml.remove --- .../{copyFileToServer.yml => copyFileToServer.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml => copyFileToServer.yml.remove} (100%) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml.remove similarity index 100% rename from .github/workflows/copyFileToServer.yml rename to .github/workflows/copyFileToServer.yml.remove From 2553c474969db11afd0b1eeba27be2084a315b0f Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:36:48 +0800 Subject: [PATCH 152/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 455df9a7..30bf4b97 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,7 +1,7 @@ html head style - include stylize.css + include stylize.css body header.wrap nav From 6515fee1f53de6158b1c0f661f74ed5602627ddd Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:40:08 +0800 Subject: [PATCH 153/172] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index be1803c5..355b5481 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"), "Hello World 👋👋"); + assert.equal(utils.greetings("World"), ); }); it("Throws on missing params", function() { From d59d0345476df06ff62675f69b0f804c2dfe9465 Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:46:10 +0800 Subject: [PATCH 154/172] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index 355b5481..e9735190 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"), ); + assert.equal(utils.greetings("World"),"Hello World 👋👋"); }); it("Throws on missing params", function() { From 87c55392e7c86b5474c8635ee66aa17c734d72c8 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:50:11 +0800 Subject: [PATCH 155/172] Rename copyFileToServer.yml.remove to copyFileToServer.yml --- .../{copyFileToServer.yml.remove => copyFileToServer.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml.remove => copyFileToServer.yml} (100%) diff --git a/.github/workflows/copyFileToServer.yml.remove b/.github/workflows/copyFileToServer.yml similarity index 100% rename from .github/workflows/copyFileToServer.yml.remove rename to .github/workflows/copyFileToServer.yml From 995914fd96e0bff4e1b7e070876103a4e72bb2ae Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Tue, 25 Aug 2020 17:48:57 +0800 Subject: [PATCH 156/172] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7711de8f..7d566440 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. -This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g. +This is the NodeJS version of our "Tonkotsu" workshop webapp. The codebase is pretty simple: it's a NodeJS app that will connect to GitHub's [Octocat API endpoint](https://api.github.com/octocat) and return the Zen quote of the day. E.g ### Demo (sucess) From 2a183ea7ca2e5fa8073ce86336d2e23485f0c9f0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 10:57:46 +0800 Subject: [PATCH 157/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 30bf4b97..33bde67d 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="https://crestsolution.com") Crest Infosolution + a(href="#") - .right a(href="#") Docs a(href="#") About From a1344b7b68243d248de00cc1d3a1d932d20a7ba6 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:11:56 +0800 Subject: [PATCH 158/172] Update copyFileToServer.yml --- .github/workflows/copyFileToServer.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml index fc00690f..0319c767 100644 --- a/.github/workflows/copyFileToServer.yml +++ b/.github/workflows/copyFileToServer.yml @@ -1,7 +1,8 @@ name: scp copy folder to remote via SSH on: - push + push: + branches: [ Devlopment ] jobs: build: @@ -17,9 +18,9 @@ jobs: cd /opt/tonkotsu-nodejs killall node rm -rf * - host: 13.229.147.148 - username: root - password: github@2020 + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} env: CI: true - name: Copy folder content recursively to remote @@ -27,9 +28,9 @@ jobs: with: local: "." remote: "/opt/tonkotsu-nodejs" - host: 13.229.147.148 - username: root - password: github@2020 + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} env: CI: true @@ -40,9 +41,9 @@ jobs: cd /opt/tonkotsu-nodejs npm install npm start /dev/null & - host: 13.229.147.148 - username: root - password: github@2020 + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} env: CI: true From b59d5dc205c68444d21d16685dfee46a9f30ece0 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:15:18 +0800 Subject: [PATCH 159/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 33bde67d..68780a92 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") - + a(href="#") --- .right a(href="#") Docs a(href="#") About From 37e52c99f40063778c5d4ebdd6273bf0f81821bf Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:30:08 +0800 Subject: [PATCH 160/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 68780a92..0b11dc9c 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") --- + a(href="#") Crest Infosolution .right a(href="#") Docs a(href="#") About From 64b8ed5f721dbd11e2e9fb17b918657fc88c2a26 Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:42:10 +0800 Subject: [PATCH 161/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 0b11dc9c..30bf4b97 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") Crest Infosolution + a(href="https://crestsolution.com") Crest Infosolution .right a(href="#") Docs a(href="#") About From 1f469ff6964a25715678878148388d65a6c23141 Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:43:21 +0800 Subject: [PATCH 162/172] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index e9735190..a75e7bfb 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"),"Hello World 👋👋"); + assert.equal(utils.greetings("World"),); }); it("Throws on missing params", function() { From c80c82d45c8851c44652760868a1589b57e6974c Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:45:09 +0800 Subject: [PATCH 163/172] Update utils.test.js fixed the issue --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index a75e7bfb..e9735190 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"),); + assert.equal(utils.greetings("World"),"Hello World 👋👋"); }); it("Throws on missing params", function() { From f1b11e9955bf6e924575c8317eb57a03f13fa9cc Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:41:13 +0800 Subject: [PATCH 164/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 30bf4b97..68780a92 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="https://crestsolution.com") Crest Infosolution + a(href="#") --- .right a(href="#") Docs a(href="#") About From e0bd6229b06f779f0e0fe827eef79d0437184bca Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:47:37 +0800 Subject: [PATCH 165/172] Rename copyFileToServer.yml to copyFileToServer.yml.remove --- .../{copyFileToServer.yml => copyFileToServer.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml => copyFileToServer.yml.remove} (100%) diff --git a/.github/workflows/copyFileToServer.yml b/.github/workflows/copyFileToServer.yml.remove similarity index 100% rename from .github/workflows/copyFileToServer.yml rename to .github/workflows/copyFileToServer.yml.remove From 1bae97c3a139c3daa8b47711473b8bc44a51152d Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:48:10 +0800 Subject: [PATCH 166/172] Rename node.js.yml to node.js.yml.remove --- .github/workflows/{node.js.yml => node.js.yml.remove} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{node.js.yml => node.js.yml.remove} (100%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml.remove similarity index 100% rename from .github/workflows/node.js.yml rename to .github/workflows/node.js.yml.remove From e4b06ab7f1fe426a5e534ad03977611579862e32 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:58:17 +0800 Subject: [PATCH 167/172] Rename copyFileToServer.yml.remove to copyFileToServer.yml --- .../{copyFileToServer.yml.remove => copyFileToServer.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{copyFileToServer.yml.remove => copyFileToServer.yml} (100%) diff --git a/.github/workflows/copyFileToServer.yml.remove b/.github/workflows/copyFileToServer.yml similarity index 100% rename from .github/workflows/copyFileToServer.yml.remove rename to .github/workflows/copyFileToServer.yml From 29ad3a7a81d5d5d64c1500d0c4841c2b9caa4c3a Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 12:59:33 +0800 Subject: [PATCH 168/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 68780a92..549c164f 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") --- + a(href="#") ---- .right a(href="#") Docs a(href="#") About From e59ff71ec9cbaf50b56c36f852dd80fa27bd53fa Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Thu, 27 Aug 2020 15:38:29 +0800 Subject: [PATCH 169/172] Create node.js.yml --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..39fcd1aa --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ Devlopment ] + pull_request: + branches: [ Devlopment ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 0e6a508e50ac99dedaa8775232f28e61200ac775 Mon Sep 17 00:00:00 2001 From: nishantkumar2019 <56535195+nishantkumar2019@users.noreply.github.com> Date: Thu, 27 Aug 2020 15:44:37 +0800 Subject: [PATCH 170/172] Update index.pug --- views/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.pug b/views/index.pug index 549c164f..30bf4b97 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,7 +5,7 @@ html body header.wrap nav - a(href="#") ---- + a(href="https://crestsolution.com") Crest Infosolution .right a(href="#") Docs a(href="#") About From 20eb9d81b20d831a637fe18755c268d7f4038385 Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 2 Dec 2022 10:13:17 +0800 Subject: [PATCH 171/172] Update node.js.yml --- .github/workflows/node.js.yml | 48 +++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 39fcd1aa..176239ab 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,29 +1,33 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI +name: Node.js Package on: - push: - branches: [ Devlopment ] - pull_request: - branches: [ Devlopment ] + release: + types: [created] jobs: build: + runs-on: self-hosted + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm test - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - + publish-gpr: + needs: build + runs-on: [self-hosted] + permissions: + packages: write + contents: read steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://npm.pkg.github.com/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 987bab20ff4e35e4e82201d4c19076f9720da8fa Mon Sep 17 00:00:00 2001 From: Saikat Kumar <56536058+saikatkumar-official@users.noreply.github.com> Date: Fri, 2 Dec 2022 10:21:41 +0800 Subject: [PATCH 172/172] Update node.js.yml --- .github/workflows/node.js.yml | 48 ++++++++++++++++------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 176239ab..39fcd1aa 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,33 +1,29 @@ -name: Node.js Package +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI on: - release: - types: [created] + push: + branches: [ Devlopment ] + pull_request: + branches: [ Devlopment ] jobs: build: - runs-on: self-hosted - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - - run: npm test - publish-gpr: - needs: build - runs-on: [self-hosted] - permissions: - packages: write - contents: read + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://npm.pkg.github.com/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test