From a5d54b564df9db63cd80d097ec3434740c77823c Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:24:29 +0100 Subject: [PATCH 1/3] changed kimiko-cs to kimiko-csharp Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/team-deployment.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/team-deployment.yml b/.github/workflows/team-deployment.yml index e85a8c44c..0227383d5 100644 --- a/.github/workflows/team-deployment.yml +++ b/.github/workflows/team-deployment.yml @@ -25,16 +25,17 @@ jobs: script: | cd hng_boilerplate_nextjs ./scripts/team_deploy.sh kimiko-golang ${{ vars.PORT }} - kimiko-cs: + + kimiko-csharp: if: github.event.repository.fork == false runs-on: ubuntu-latest environment: - name: "kimiko-cs" + name: "kimiko-csharp" url: ${{ vars.URL }} steps: - - name: Deploy to kimiko-cs environment + - name: Deploy to kimiko-csharp environment uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.HOST }} @@ -42,7 +43,7 @@ jobs: password: ${{ secrets.PASSWORD }} script: | cd hng_boilerplate_nextjs - ./scripts/team_deploy.sh kimiko-cs ${{ vars.PORT }} + ./scripts/team_deploy.sh kimiko-csharp ${{ vars.PORT }} cyborgs-java: if: github.event.repository.fork == false From 7d11d29a2607e27bb80b69cc3495b2d4cecb4c1f Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:26:37 +0100 Subject: [PATCH 2/3] Update Dockerfile Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- docker/staging/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/staging/Dockerfile b/docker/staging/Dockerfile index 1804005e9..74067e5bb 100644 --- a/docker/staging/Dockerfile +++ b/docker/staging/Dockerfile @@ -1,4 +1,4 @@ -Use the official Node.js image based on Alpine Linux for a smaller image size +# Use the official Node.js image based on Alpine Linux for a smaller image size FROM node:20-alpine AS base FROM base AS deps @@ -24,6 +24,7 @@ COPY . . # Build the application RUN corepack enable pnpm && pnpm run build + # Production image, copy all the files and run next FROM base AS runner WORKDIR /app @@ -52,4 +53,4 @@ ENV PORT 3000 # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output -CMD HOSTNAME="0.0.0.0" node server.js \ No newline at end of file +CMD HOSTNAME="0.0.0.0" node server.js From 07f6e957d434c4b058c83126c851cc1a2f62b645 Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:27:19 +0100 Subject: [PATCH 3/3] Update Dockerfile Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- docker/prod/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index 1804005e9..74067e5bb 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -1,4 +1,4 @@ -Use the official Node.js image based on Alpine Linux for a smaller image size +# Use the official Node.js image based on Alpine Linux for a smaller image size FROM node:20-alpine AS base FROM base AS deps @@ -24,6 +24,7 @@ COPY . . # Build the application RUN corepack enable pnpm && pnpm run build + # Production image, copy all the files and run next FROM base AS runner WORKDIR /app @@ -52,4 +53,4 @@ ENV PORT 3000 # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output -CMD HOSTNAME="0.0.0.0" node server.js \ No newline at end of file +CMD HOSTNAME="0.0.0.0" node server.js