Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Feb 6, 2024
1 parent ac2b2ad commit 68743de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

env:
# Must match k8s deployment name
DEPLOYMENT: paysage-lab
DEPLOYMENT_NAMESPACE: paysage-lab
DEPLOYMENT_URL: https://paysage-lab.staging.dataesr.ovh
MM_NOTIFICATION_CHANNEL: 'paysage-bot'
DEPLOYMENT: datasupr
DEPLOYMENT_NAMESPACE: datasupr
DEPLOYMENT_URL: https://datasupr.staging.dataesr.ovh
MM_NOTIFICATION_CHANNEL: 'bots'

jobs:
publish-ghcr:
Expand All @@ -28,9 +28,8 @@ jobs:
- name: copy client build to server
run: cp -r client/build/ server/public/ && cd ..


- name: Build image
run: docker build -f ./server/Dockerfile -t ${{ github.repository }} .
run: docker build -f ./Dockerfile -t ${{ github.repository }} .

- name: Get Tag
id: version
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:18-alpine
WORKDIR /app

COPY server ./
COPY ./server/package.json ./
RUN npm ci --silent
COPY ./server ./
EXPOSE 3000
2 changes: 2 additions & 0 deletions server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if (process.env.NODE_ENV === 'development') {
app.use(express.static(path.join(path.resolve(), 'dist')));
}

app.use(express.static(path.join(path.resolve(), 'public')));

app.get('/api/docs/specs.json', (req, res) => { res.status(200).json(apiDocument); });

app.use(OAV.middleware({
Expand Down

0 comments on commit 68743de

Please sign in to comment.