Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed May 17, 2024
1 parent b0fff9e commit fbc3872
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,19 @@ jobs:
source: "./${{ env.CI_JOB_ID }}"
target: "/home/${{ secrets.CI_DEPLOY_USER }}/"

# - 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 }}

0 comments on commit fbc3872

Please sign in to comment.