add the ability to actually restart docker compose
Some checks failed
Code quality checks / build (18.16) (push) Successful in 1m13s
Push code / build (push) Failing after 6s

Signed-off-by: laratheprotogen <laraproto@proton.me>
This commit is contained in:
Lara 2024-10-25 12:45:00 +00:00
parent 3a5a1aca20
commit e16e29cf50

View file

@ -16,6 +16,6 @@ jobs:
echo "${{ secrets.ZAPPYZEP_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.ZAPPYZEP_KEY }}" > ~/.ssh/id_ed25519
ssh-keyscan -H zappyzep.xyz > ~/.ssh/known_hosts ssh-keyscan -H zappyzep.xyz > ~/.ssh/known_hosts
- name: connect and pull - name: connect and pull
run: ssh zappyzep@zappyzep.xyz "cd Zeppelin && git checkout working-commit && git pull && exit" run: ssh zappyzep@zappyzep.xyz "cd Zeppelin && git checkout working-commit && git pull && docker compose -f docker-compose.standalone.yml down && docker image rm zeppelin-prod-{api,dashboard,bot,migrate,nginx} && docker compose up -f docker-compose.standalone.yml up -d && exit"
- name: cleanup - name: cleanup
run: rm -rf ~/.ssh run: rm -rf ~/.ssh