Skip to content

add: remote run test #4

add: remote run test

add: remote run test #4

Workflow file for this run

name: Deploy to Remote Server
on:
push:
branches:
- add/1205782676034164_autotest-deplyoment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY_AUTOTEST }}
# - name: Copy Docker Compose File
# run: scp -i ${{ secrets.SSH_PRIVATE_KEY }} docker-compose.yml user@remotehost:/path/to/remote/folder
- name: SSH into Remote Server
run: ssh -i ${{ secrets.SSH_KEY_AUTOTEST }} [email protected] 'cd /home/jay/parachain-launch/yoyo && sudo docker compose down -v && sudo docker compose up -d --build --remove-orphans'