Building proto messages in CI
This commit is contained in:
parent
398ca1760b
commit
d3116c7400
8
.github/workflows/continuous_integration.yml
vendored
8
.github/workflows/continuous_integration.yml
vendored
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user