Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ravencodess patch 1 #731

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading