Skip to content

Commit

Permalink
deploying to t3desk to test docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr223 committed Aug 18, 2023
1 parent c072397 commit b5163f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,27 @@ jobs:
- name: Create Secrets file
run: |
touch ${{ github.workspace }}/deploy/cleo_url.txt
echo "DEV_CLEO_URL=${{ secrets.DEV_CLEO_URL }}" >> ${{ github.workspace }}/deploy/cleo_url.txt
echo "${{ secrets.DEV_CLEO_URL }}" >> ${{ github.workspace }}/deploy/cleo_url.txt
chmod 400 ${{ github.workspace }}/deploy/cleo_url.txt
touch ${{ github.workspace }}/deploy/cleo_user.txt
echo "DEV_CLEO_USER=${{ secrets.DEV_CLEO_USER }}" >> ${{ github.workspace }}/deploy/cleo_user.txt
echo "${{ secrets.DEV_CLEO_USER }}" >> ${{ github.workspace }}/deploy/cleo_user.txt
chmod 400 ${{ github.workspace }}/deploy/cleo_user.txt
touch ${{ github.workspace }}/deploy/cleo_pw.txt
echo "DEV_CLEO_PW=${{ secrets.DEV_CLEO_PW }}" >> ${{ github.workspace }}/deploy/cleo_pw.txt
echo "${{ secrets.DEV_CLEO_PW }}" >> ${{ github.workspace }}/deploy/cleo_pw.txt
chmod 400 ${{ github.workspace }}/deploy/cleo_pw.txt
touch ${{ github.workspace }}/deploy/cleo_project.txt
echo "DEV_CLEO_PROJECT=${{ secrets.DEV_CLEO_PROJECT }}" >> ${{ github.workspace }}/deploy/cleo_project.txt
echo "${{ secrets.DEV_CLEO_PROJECT }}" >> ${{ github.workspace }}/deploy/cleo_project.txt
chmod 400 ${{ github.workspace }}/deploy/cleo_project.txt
# copy repository to machine
- name: Copy Repository
run: |
rsync -e ssh -r ${{ github.workspace}} --exclude .git/ --delete submit:~/
rsync -e ssh -r ${{ github.workspace}} --exclude .git/ --delete submit-gpu:~/
# run deploy script
- name: Run Deploy Script
run: |
ssh submit 'bash -s' < ${{ github.workspace }}/deploy/dev-install.sh
ssh submit-gpu 'bash -s' < ${{ github.workspace }}/deploy/dev-install.sh
# print job status
- run: echo "🍏 This job's status is ${{ job.status }}."
9 changes: 9 additions & 0 deletions deploy/ssh_config
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ Host submit
IdentityFile ~/.ssh/id_rsa_submit
StrictHostKeyChecking no

Host submit-gpu
HostName t3desk019.mit.edu
User mdrusso
IdentitiesOnly=yes
PreferredAuthentications publickey
PasswordAuthentication no
IdentityFile /Users/matthewrusso/.ssh/id_rsa_submit
StrictHostKeyChecking no

0 comments on commit b5163f9

Please sign in to comment.