Initial commit #1
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: AppSeed v2 - Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # paths-ignore: | |
| # - "docs/source/**" | |
| jobs: | |
| deployment: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| steps: | |
| - name: executing remote ssh commands using password | |
| uses: appleboy/ssh-action@master | |
| timeout-minutes: 120 | |
| with: | |
| host: ${{ secrets.HOST }} | |
| username: ${{ secrets.USER }} | |
| password: ${{ secrets.PASS }} | |
| port: ${{ secrets.PORT }} | |
| timeout: 120m | |
| command_timeout: 120m | |
| script: | | |
| cd ~/appseed-v2 | |
| git pull origin main | |
| docker stop appseed-app appseed-docs | |
| docker system prune -af | |
| cd ~/appseed-v2 | |
| cp -r media/* /var/lib/docker/volumes/appseed-v2_media-data/_data/ | |
| docker compose build --no-cache && docker compose up -d |