From 73cc38fe935adc3f4bb53224d363652cf2102f35 Mon Sep 17 00:00:00 2001 From: joseji Date: Tue, 2 May 2023 16:52:27 +0200 Subject: [PATCH] fuera deploy --- .github/workflows/lomap_es6c.yml | 34 ++++++++++++++++---------------- webapp/Dockerfile | 1 - 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/lomap_es6c.yml b/.github/workflows/lomap_es6c.yml index 2dbe91b..cdea7ee 100644 --- a/.github/workflows/lomap_es6c.yml +++ b/.github/workflows/lomap_es6c.yml @@ -54,20 +54,20 @@ jobs: registry: ghcr.io workdir: webapp - deploy: - name: Deploy over SSH - runs-on: ubuntu-latest - needs: [docker-push-webapp] - steps: - - name: Deploy over SSH - uses: fifsky/ssh-action@master - with: - host: ${{ secrets.DEPLOY_HOST }} - user: ${{ secrets.DEPLOY_USER }} - key: ${{ secrets.DEPLOY_KEY }} - command: | - wget https://raw.githubusercontent.com/arquisoft/lomap_es6c/master/docker-compose-deploy.yml -O docker-compose.yml - docker-compose stop - docker-compose rm -f - docker-compose pull - docker-compose up -d + # deploy: + # name: Deploy over SSH + # runs-on: ubuntu-latest + # needs: [docker-push-webapp] + # steps: + # - name: Deploy over SSH + # uses: fifsky/ssh-action@master + # with: + # host: ${{ secrets.DEPLOY_HOST }} + # user: ${{ secrets.DEPLOY_USER }} + # key: ${{ secrets.DEPLOY_KEY }} + # command: | + # wget https://raw.githubusercontent.com/arquisoft/lomap_es6c/master/docker-compose-deploy.yml -O docker-compose.yml + # docker-compose stop + # docker-compose rm -f + # docker-compose pull + # docker-compose up -d diff --git a/webapp/Dockerfile b/webapp/Dockerfile index b06c6a5..3a521a3 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -10,4 +10,3 @@ RUN npm run build #Execute npm run prod to run the server CMD [ "npm", "run", "prod" ] -#CMD ["npm", "start"]