From 1831cc7eb2299c2527c0bd0be5e23e8e44f6f58b Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 22 Apr 2024 21:05:38 +0200 Subject: [PATCH] fix ci --- .gitea/workflows/deploy.yaml | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 57407dc..ad83751 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -14,26 +14,26 @@ on: workflow_dispatch: jobs: - deploy-frontend: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - working-directory: ./frontend - - run: npm ci - name: clean install - working-directory: ./frontend - - name: building - working-directory: ./frontend - run: npm run build - - name: pushing to the server - working-directory: ./frontend - run: | - echo "${{ secrets.SSH_KEY }}" > key - chmod 0600 key - scp -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key -r dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}: - - run: echo "The website has been deployed. visit https://clyde.herisson.ovh/" + # deploy-frontend: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Use Node.js ${{ matrix.node-version }} + # uses: actions/setup-node@v3 + # working-directory: ./frontend + # - run: npm ci + # name: clean install + # working-directory: ./frontend + # - name: building + # working-directory: ./frontend + # run: npm run build + # - name: pushing to the server + # working-directory: ./frontend + # run: | + # echo "${{ secrets.SSH_KEY }}" > key + # chmod 0600 key + # scp -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key -r dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}: + # - run: echo "The website has been deployed. visit https://clyde.herisson.ovh/" deploy-backend: runs-on: ubuntu-latest @@ -46,5 +46,5 @@ jobs: scp -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key -r * ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:api/ - name: restarting the backend run: | - ssh -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} 'cd api/ && sed -i compose.yaml -e "s/8080:8080/4001:8080/" -e "s/8000:8080/4000:8080/" && docker-compose up --force-recreate --build -d' + ssh -o "StrictHostKeyChecking=no" -o "LogLevel=ERROR" -i key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} 'cd api/ && sed -i compose.yaml -e "s/8080:8080/4001:8080/" -e "s/8000:8080/4000:8080/" && docker-compose up -e VITE_CLYDE_MODE=prod --force-recreate --build -d' - run: echo "The backend has been deployed. running at https://clyde.herisson.ovh/api"