Revert "feat: Снежинки!" #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: deploy | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run ssh action with git pull and docker rebuild | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.DEPLOY_SERVER_HOST }} | |
username: ${{ secrets.DEPLOY_SERVER_USERNAME }} | |
password: ${{ secrets.DEPLOY_SERVER_PASSWORD }} | |
script: | | |
cd ${{ secrets.DEPLOY_SERVER_WORK_DIR }} | |
git fetch origin main | |
git reset origin/main --hard | |
docker compose -f docker-compose.prod.yml up -d --build |