From 4f356b8b7b3761430a4ee6b6c37a513965d9b2ae Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:04:50 +0100 Subject: [PATCH 1/6] Update staging-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/staging-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/staging-deployment.yml b/.github/workflows/staging-deployment.yml index 763f7e44c..00e1ae376 100644 --- a/.github/workflows/staging-deployment.yml +++ b/.github/workflows/staging-deployment.yml @@ -67,4 +67,4 @@ jobs: tar -xzf nextjs-staging.tar.gz rm -f nextjs-staging.tar.gz cp -r .next/standalone/* . - pm2 restart nextjs_boilerplate --update-env + pm2 restart nextjs_boilerplate_staging --update-env From dfd5f2ef7868a09e37a83ad1a5f0915c5ef0419a Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:06:03 +0100 Subject: [PATCH 2/6] Update production-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/production-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production-deployment.yml b/.github/workflows/production-deployment.yml index 7eb632f9e..db96ff0ab 100644 --- a/.github/workflows/production-deployment.yml +++ b/.github/workflows/production-deployment.yml @@ -67,4 +67,4 @@ jobs: tar -xzf nextjs-prod.tar.gz rm -f nextjs-prod.tar.gz cp -r .next/standalone/* . - pm2 restart nextjs_boilerplateg --update-env + pm2 restart nextjs_boilerplate_prod --update-env From 85b28e83954bb209a9049a0ee535413fdf4cf58f Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:08:14 +0100 Subject: [PATCH 3/6] Update staging-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/staging-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/staging-deployment.yml b/.github/workflows/staging-deployment.yml index 00e1ae376..b2934d656 100644 --- a/.github/workflows/staging-deployment.yml +++ b/.github/workflows/staging-deployment.yml @@ -10,7 +10,7 @@ on: - staging jobs: - build: + build-and-deploy: runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/staging'}} && ${{ github.event.workflow_run.conclusion == 'success' }} From fadefbf3a001c22781f51bc1d8e5150f65122857 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:08:42 +0100 Subject: [PATCH 4/6] Update production-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/production-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production-deployment.yml b/.github/workflows/production-deployment.yml index db96ff0ab..7b5360c30 100644 --- a/.github/workflows/production-deployment.yml +++ b/.github/workflows/production-deployment.yml @@ -10,7 +10,7 @@ on: - main jobs: - build: + build-and-deploy: runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/main'}} && ${{ github.event.workflow_run.conclusion == 'success' }} From 2b3f50558064aaf686c1299665e381f229c0f376 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:51:24 +0100 Subject: [PATCH 5/6] Update staging-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/staging-deployment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/staging-deployment.yml b/.github/workflows/staging-deployment.yml index b2934d656..5675faccd 100644 --- a/.github/workflows/staging-deployment.yml +++ b/.github/workflows/staging-deployment.yml @@ -66,5 +66,4 @@ jobs: cd ~/hng_boilerplate_nextjs/staging tar -xzf nextjs-staging.tar.gz rm -f nextjs-staging.tar.gz - cp -r .next/standalone/* . pm2 restart nextjs_boilerplate_staging --update-env From 1019f549037ca84cba55933fdb7af6e40b203012 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:51:46 +0100 Subject: [PATCH 6/6] Update production-deployment.yml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/production-deployment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/production-deployment.yml b/.github/workflows/production-deployment.yml index 7b5360c30..3e9869d13 100644 --- a/.github/workflows/production-deployment.yml +++ b/.github/workflows/production-deployment.yml @@ -66,5 +66,4 @@ jobs: cd ~/hng_boilerplate_nextjs/prod tar -xzf nextjs-prod.tar.gz rm -f nextjs-prod.tar.gz - cp -r .next/standalone/* . pm2 restart nextjs_boilerplate_prod --update-env