From 232c076b40bd494d90f954ed1aa9bc24434c4844 Mon Sep 17 00:00:00 2001 From: Adrien Carpentier Date: Fri, 17 May 2024 16:15:27 +0900 Subject: [PATCH] test --- .github/workflows/build_and_deploy.yml | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index dced88f..4740a7d 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -58,20 +58,20 @@ jobs: source: "./${{ env.CI_JOB_ID }}" target: "/home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }}" - - name: Execute server commands for deploy - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.CI_DEPLOY_HOST }} - username: ${{ secrets.CI_DEPLOY_USER }} - key: ${{ secrets.CI_DEPLOY_USER_SSH_PRIVATE_KEY }} - script: | - cd /home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }} - mkdir -p /data/tchapbot + # - name: Execute server commands for deploy + # uses: appleboy/ssh-action@master + # with: + # host: ${{ secrets.CI_DEPLOY_HOST }} + # username: ${{ secrets.CI_DEPLOY_USER }} + # key: ${{ secrets.CI_DEPLOY_USER_SSH_PRIVATE_KEY }} + # script: | + # cd /home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }} + # mkdir -p /data/tchapbot - export COMPOSE_FILE=/home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }}/docker-compose.yml - export COMPOSE_PROJECT_NAME=albert-tchapbot + # export COMPOSE_FILE=/home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }}/docker-compose.yml + # export COMPOSE_PROJECT_NAME=albert-tchapbot - docker compose down - docker compose up --detach + # docker compose down + # docker compose up --detach - rm -rf /home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }} + # rm -rf /home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }}