From acba845cbca3c7813686b082ff5746e592e7cf53 Mon Sep 17 00:00:00 2001 From: Jyotisubhra Ghosh Date: Fri, 30 Jun 2023 14:22:41 +0200 Subject: [PATCH 1/6] initial commit --- .github/workflows/nonproductions.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nonproductions.yml diff --git a/.github/workflows/nonproductions.yml b/.github/workflows/nonproductions.yml new file mode 100644 index 00000000..a27cb3b0 --- /dev/null +++ b/.github/workflows/nonproductions.yml @@ -0,0 +1,31 @@ +name: Deploy site into non production environment + +on: + push: + branches: + - feature* + +jobs: + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-b33b08b68dd59e5efc0b6570c-nonprodbucket-25jfa1ajwzt5 + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: Configure AWS cli + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: set up node js + uses: actions/setup-node@v3 + with: + node-version: 14 + - name: Build site + run: | + npm ci + npm run build + - name: Deploy site to bucket + run: aws s3 cp public s3://${{ env.BUCKET_NAME }} --recursive --acl public-read \ No newline at end of file From ab0c9e7b306777a0f9b929a56ce2a1a47476edeb Mon Sep 17 00:00:00 2001 From: jyotisubhra Date: Fri, 30 Jun 2023 15:24:07 +0200 Subject: [PATCH 2/6] v2 edit --- .github/workflows/nonproductions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nonproductions.yml b/.github/workflows/nonproductions.yml index a27cb3b0..5898c551 100644 --- a/.github/workflows/nonproductions.yml +++ b/.github/workflows/nonproductions.yml @@ -15,12 +15,12 @@ jobs: uses: actions/checkout@v2 - name: Configure AWS cli uses: aws-actions/configure-aws-credentials@v2 - with: + with:feature-nonproduction aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: set up node js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: 14 - name: Build site From 1a4b4b25e4911814a5ac8152204765ae1735e813 Mon Sep 17 00:00:00 2001 From: jyotisubhra Date: Fri, 30 Jun 2023 15:27:14 +0200 Subject: [PATCH 3/6] v2 edit1 --- .github/workflows/nonproductions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nonproductions.yml b/.github/workflows/nonproductions.yml index 5898c551..d731b29f 100644 --- a/.github/workflows/nonproductions.yml +++ b/.github/workflows/nonproductions.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v2 - name: Configure AWS cli uses: aws-actions/configure-aws-credentials@v2 - with:feature-nonproduction + with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 From 694037233261445ba3f50328763ca2586fc52d99 Mon Sep 17 00:00:00 2001 From: jyotisubhra Date: Fri, 30 Jun 2023 15:39:40 +0200 Subject: [PATCH 4/6] production env --- .github/workflows/production.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/production.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 00000000..e69de29b From 29dda22a85d7ed6a6389deed8c79881816f4470b Mon Sep 17 00:00:00 2001 From: jyotisubhra Date: Fri, 30 Jun 2023 15:48:26 +0200 Subject: [PATCH 5/6] production env1 --- .github/workflows/production.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index e69de29b..5e7bf358 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -0,0 +1,31 @@ +name: Deploy site into production environment + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + env: + BUCKET_NAME: cfst-3457-b33b08b68dd59e5efc0b6570ce31-prodbucket-xkgbyxelh0jz + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: Configure AWS cli + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: set up node js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Build site + run: | + npm ci + npm run build + - name: Deploy site to bucket + run: aws s3 cp public s3://${{ env.BUCKET_NAME }} --recursive --acl public-read \ No newline at end of file From f58c3ae30840eb6562f4ca0fbefd94d8f1f8ae95 Mon Sep 17 00:00:00 2001 From: jyotisubhra Date: Fri, 30 Jun 2023 15:55:40 +0200 Subject: [PATCH 6/6] new header added --- src/pages/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/index.js b/src/pages/index.js index e72936a2..805e830f 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -19,6 +19,7 @@ const IndexPage = () => { Welcome to{' '} Cloud Coffee +

Launch Date Announced!!!