add: remote run test #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY_AUTOTEST }} |