Cron For Run Containers #66
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: Cron For Run Containers | |
on: | |
schedule: | |
- cron: "5 0 * * *" | |
jobs: | |
pull_deploy: | |
name: Connect server ssh and run containers | |
runs-on: ubuntu-latest | |
steps: | |
- name: connect ssh | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.DEPLOYMENT_HOST }} | |
username: ${{ secrets.DEPLOYMENT_USERNAME }} | |
password: ${{ secrets.DEPLOYMENT_PASSWORD }} | |
port: ${{ secrets.DEPLOYMENT_PORT }} | |
script: | | |
sh autoserver.sh |