Skip to content

Commit

Permalink
doocker file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pitiscarf committed Nov 6, 2024
1 parent 1c661a2 commit 3001d58
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 45 deletions.
76 changes: 35 additions & 41 deletions .github/workflows/wip-deploy-ci-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,48 @@ on:
- 3577-app

jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: "18.20"

# - uses: actions/cache@v4
# id: cache-npm
# with:
# path: |
# node_modules
# app/node_modules
# packages/ds/node_modules
# packages/lib/node_modules
# key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-nodemodules-
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# - name: Install packages
# if: steps.cache-npm.outputs.cache-hit != 'true'
# run: npm ci
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.20"

# - name: Build lib
# working-directory: packages/lib
# run: npm run build
- uses: actions/cache@v4
id: cache-npm
with:
path: |
node_modules
app/node_modules
packages/ds/node_modules
packages/lib/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-nodemodules-
# - name: Build ds
# working-directory: packages/ds
# run: npm run build
- name: Install packages
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

# # Typescript check
# - name: Check types
# working-directory: app
# continue-on-error: false
# run: npm run check-types
# Typescript check
- name: Check types
env:
APP_NAME: app
continue-on-error: false
run: npm run check-types

# # ESLint check
# - name: Lint code
# working-directory: app
# continue-on-error: false
# run: npm run lint
# ESLint check
- name: Lint code
env:
APP_NAME: app
continue-on-error: false
run: npm run lint

build:
# needs: [test]
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ ARG VITE_SENTRY_SESSION_SAMPLE_RATE
ARG VITE_SENTRY_TRACING_SAMPLE_RATE
ARG VITE_SENTRY_ON_ERROR_SAMPLE_RATE

RUN cd packages/lib && npm run build
RUN cd packages/ds && npm run build
RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) \
npm run build -- -- --mode ${VITE_ENVIRONMENT}
Expand Down
2 changes: 0 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ ARG VITE_FRANCE_CONNECT_URL
ARG VITE_API_ENGAGEMENT_URL
ARG VITE_API_ENGAGEMENT_SNU_ID

RUN cd packages/lib && npm run build
RUN cd packages/ds && npm run build
RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) \
npm run build -- -- --mode ${VITE_ENVIRONMENT}
Expand Down

0 comments on commit 3001d58

Please sign in to comment.