Skip to content

Commit

Permalink
trying to run simple script on submit via ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr223 committed Aug 11, 2023
1 parent 9f966fa commit 52a4590
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ jobs:
- uses: actions/checkout@v3
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: |
ls -a ~
ls ~/.ssh/
cat ~/.ssh/config
# - run: |
# touch ~/.ssh/id_rsa_submit
# echo ${{ secrets.SSH_PRIVATE_KEY_MDRUSSO }} >> ~/.ssh/id_rsa_submit
mkdir ~/.ssh/
touch ~/.ssh/config
echo ${{ secrets.SSH_PRIVATE_KEY_MDRUSSO }} >> ~/.ssh/id_rsa_submit
cp ${{ github.workspace}}/deploy/ssh_config ~/.ssh/config
ssh submit 'bash -s' < ${{ github.workspace }}/deploy/install.sh
# - uses: webfactory/[email protected]
# with:
Expand Down
4 changes: 4 additions & 0 deletions deploy/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo `pwd`

7 changes: 7 additions & 0 deletions deploy/ssh_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Host submit
HostName submit.mit.edu
User mdrusso
IdentitiesOnly=yes
PreferredAuthentications publickey
PasswordAuthentication no
IdentityFile ~/.ssh/id_rsa_submit

0 comments on commit 52a4590

Please sign in to comment.