Skip to content

deploy

deploy #18

Workflow file for this run

name: deploy
on:
workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /usr/src/app/TurtleMQ
docker pull kysre/turtlemq:datanode-latest
docker pull kysre/turtlemq:leader-latest
docker compose -f docker-compose.yaml down
git reset HEAD --hard
git pull
docker compose -f docker-compose.yaml up -d