Merge pull request #43 from QwertyMD/update #9
This file contains hidden or 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: Deploying on self-hosted runner | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| name: Deploy docker-compose on host | |
| runs-on: [self-hosted, Linux] | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v3 | |
| - name: Run Docker Compose | |
| run: | | |
| cd /home/devteam/frontend | |
| git pull origin main | |
| docker compose up -d --build --remove-orphans |