Skip to content

Commit

Permalink
Create deploy-only.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
geleeroyale authored Aug 5, 2024
1 parent f3acad0 commit f3f8504
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci

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

0 comments on commit f3f8504

Please sign in to comment.