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 29f5146 commit 232c076
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 232c076

Please sign in to comment.