diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 263beb5..c4cf92a 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,4 +19,6 @@ jobs: ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts - name: connect and pull run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && exit" - + - name: deploy + run: | + cd ${{ secrets.WORK_DIR }} && docker compose up -d --build