zappyzep/.github/workflows/push-code.yml
laratheprotogen 5546ccda96
Some checks failed
Code quality checks / build (18.16) (push) Has been cancelled
Push code / build (push) Failing after 3s
Update .github/workflows/push-code.yml
2024-10-25 12:47:11 +00:00

21 lines
No EOL
696 B
YAML

name: Push code
on:
push:
branches:
- working-commit
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install ssh keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_ed25519
echo "${{ secrets.ZAPPYZEP_KEY }}" > ~/.ssh/id_ed25519
ssh-keyscan -H zappyzep.xyz > ~/.ssh/known_hosts
- name: connect and pull
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 -f docker-compose.standalone.yml up -d && exit"
- name: cleanup
run: rm -rf ~/.ssh