Deploy to remote server #124
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: Deploy to remote server | |
| on: | |
| schedule: | |
| - cron: 0 1 * * * | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy Docker Image | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_KEY }} | |
| command_timeout: 10m | |
| script: | | |
| cd /opt/flexmodel-quickstarts | |
| docker-compose pull | |
| docker-compose up -d |