Building proto messages in CI

This commit is contained in:
David Négrier 2020-09-18 17:51:12 +02:00
parent 398ca1760b
commit d3116c7400
3 changed files with 10 additions and 2 deletions

View file

@ -30,6 +30,10 @@ jobs:
run: yarn install
working-directory: "messages"
- name: "Build proto messages"
run: yarn run proto
working-directory: "messages"
- name: "Build"
run: yarn run build
env:
@ -66,6 +70,10 @@ jobs:
run: yarn install
working-directory: "messages"
- name: "Build proto messages"
run: yarn run proto
working-directory: "messages"
- name: "Build"
run: yarn run tsc
working-directory: "back"

View file

@ -3,7 +3,7 @@ FROM thecodingmachine/nodejs:12
COPY --chown=docker:docker back .
COPY --chown=docker:docker messages ../messages
RUN yarn install
RUN cd /usr/src/messages && yarn install
RUN cd /usr/src/messages && yarn install && yarn proto
ENV NODE_ENV=production

View file

@ -4,7 +4,7 @@ FROM thecodingmachine/nodejs:14-apache
COPY --chown=docker:docker front .
COPY --chown=docker:docker messages /var/www/messages
RUN yarn install
RUN cd /var/www/messages && yarn install
RUN cd /var/www/messages && yarn install && yarn proto
ENV NODE_ENV=production
ENV STARTUP_COMMAND_1="yarn run build"