Merge pull request 'Use prod build for public things' (#143) from cicd2 into main
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #143
This commit is contained in:
commit
0ea048048b
2 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
repo: caminsha/bt-backend
|
repo: caminsha/bt-backend
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: ./backend/Dockerfile
|
dockerfile: ./backend/Dockerfile.prod
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
|
@ -27,7 +27,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
repo: caminsha/bt-frontend
|
repo: caminsha/bt-frontend
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: ./frontend/Dockerfile
|
dockerfile: ./frontend/Dockerfile.prod
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
|
|
|
@ -6,6 +6,7 @@ COPY package.json ./
|
||||||
COPY package-lock.json ./
|
COPY package-lock.json ./
|
||||||
RUN npm ci --silent
|
RUN npm ci --silent
|
||||||
RUN npm install react-scripts -g --silent
|
RUN npm install react-scripts -g --silent
|
||||||
|
RUN npm audit fix
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue