Skip to content

Commit

Permalink
Merge pull request #731 from hngprojects/Ravencodess-patch-1
Browse files Browse the repository at this point in the history
Ravencodess patch 1
  • Loading branch information
ThePrimeJnr authored Jul 29, 2024
2 parents 085a0c9 + 07f6e95 commit 6a9f577
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/team-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,25 @@ 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/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
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
Expand Down
5 changes: 3 additions & 2 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
CMD HOSTNAME="0.0.0.0" node server.js
5 changes: 3 additions & 2 deletions docker/staging/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
CMD HOSTNAME="0.0.0.0" node server.js

0 comments on commit 6a9f577

Please sign in to comment.