deploy latest givpower-bot image #1
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 latest givpower-bot image | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH and Redeploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_PRIVATEKEY }} | |
port: ${{ secrets.SSH_PORT }} | |
debug: true | |
script: | | |
cd ~/givpower-bots/givpower-bot-optimism-production | |
docker compose stop givpower-bot | |
docker compose pull givpower-bot | |
docker compose up -d givpower-bot | |
cd ~/givpower-bots/givpower-bot-xdai-production | |
docker compose stop givpower-bot | |
docker compose pull givpower-bot | |
docker compose up -d givpower-bot | |
docker image prune -a --force |