Skip to content

Commit

Permalink
Change host for deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpausmit committed Oct 16, 2023
1 parent 2d5ed3d commit ade5eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prod-cp-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
# stop any existing docker compose that's running
- name: Stop Docker Compose
run: |
ssh ppc 'bash -s' < ${{ github.workspace }}/deploy/prod-cp/prod-cp-stop.sh
ssh ppc-host 'bash -s' < ${{ github.workspace }}/deploy/prod-cp/prod-cp-stop.sh
# copy repository to machine
- name: Copy Repository
run: |
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete ppc:~/A2rchi-prod-cp/
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete ppc-host:~/A2rchi-prod-cp/
# run deploy script
- name: Run Deploy Script
run: |
ssh ppc 'bash -s' < ${{ github.workspace }}/deploy/prod-cp/prod-cp-install.sh
ssh ppc-host 'bash -s' < ${{ github.workspace }}/deploy/prod-cp/prod-cp-install.sh
# clean up secret files
- name: Remove Secrets from Runner
Expand Down
2 changes: 1 addition & 1 deletion deploy/ssh_config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Host submit-t3desk
IdentityFile ~/.ssh/id_rsa_submit
StrictHostKeyChecking no

Host ppc
Host ppc-host
HostName submit06.mit.edu
User a2rchi
IdentitiesOnly=yes
Expand Down

0 comments on commit ade5eb6

Please sign in to comment.