Skip to content

Commit

Permalink
update deploy by gitActions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tharlestsa committed Sep 29, 2024
1 parent 48fe8af commit 55e22b0
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 28,519 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ jobs:
- name: Configurar Node.js
uses: actions/setup-node@v2
with:
node-version: '12.22.2'
node-version: '14.17.3'

- name: Build Server and client
run: |
npm set progress=false
cd ${{ github.workspace }}/src/server && npm install
cd ${{ github.workspace }}/src/client && npm install
npm install -g @angular/[email protected]
cd ${{ github.workspace }}/src/client && ng build --stats-json --source-map=false --no-progress
- name: Build Docker
run: |
Expand Down
8 changes: 3 additions & 5 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ RUN if [ -d "/APP/ntvi" ]; then rm -Rf /APP/ntvi; fi && \
cd /APP && git clone -b ${BRANCH} ${URL_TO_APPLICATION_GITHUB} && \
mkdir -p /APP/ntvi/src/server/logs

ADD ./src/server/node_modules /APP/ntvi/src/server/node_modules
ADD ./src/client/dist /APP/ntvi/src/client/dist
ADD ../../src/server/node_modules /APP/ntvi/src/server/node_modules
ADD ../../src/client/dist /APP/ntvi/src/client/dist

CMD [ "/bin/bash", "-c", "/APP/src/server/prod-start.sh; tail -f /dev/null"]

ENTRYPOINT [ "/APP/monitor.sh"]
ENTRYPOINT ["/bin/bash", "-c", "/APP/monitor.sh"]
Loading

0 comments on commit 55e22b0

Please sign in to comment.