Skip to content

Commit

Permalink
root a2rchi to t3desk018, plus port change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Martino Lugato committed Jul 26, 2024
1 parent 4535ba5 commit 9253aae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prod-root-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,30 @@ jobs:
# create deployment directory if it doesn't already exist
- name: Create Directory
run: |
ssh submit06 "mkdir -p ~/A2rchi-prod-root/"
ssh submit-t3desk018 "mkdir -p ~/A2rchi-prod-root/"
# stop any existing docker compose that's running
- name: Stop Docker Compose
run: |
ssh submit06 'bash -s' < ${{ github.workspace }}/deploy/prod-root/prod-root-stop.sh
ssh submit-t3desk018 'bash -s' < ${{ github.workspace }}/deploy/prod-root/prod-root-stop.sh
# copy repository to machine
- name: Copy Repository
run: |
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete submit06:~/A2rchi-prod-root/
rsync -e ssh -r ${{ github.workspace}}/* --exclude .git/ --delete submit-t3desk018:~/A2rchi-prod-root/
# run deploy script
- name: Run Deploy Script
run: |
export tag="${GITHUB_REF#refs/heads/}"
export tag="${tag//\//-}.${GITHUB_SHA}"
sed -i "s/BASE_TAG/${tag}/" ${{ github.workspace }}/deploy/prod-root/prod-root-install.sh
ssh submit06 'bash -s' < ${{ github.workspace }}/deploy/prod-root/prod-root-install.sh
ssh submit-t3desk018 'bash -s' < ${{ github.workspace }}/deploy/prod-root/prod-root-install.sh
# clean up secret files
- name: Remove Secrets from Runner
run: |
rm ${{ github.workspace }}/deploy/prod-root/secrets/*.txt
# print job status
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
2 changes: 1 addition & 1 deletion deploy/prod-root/prod-root-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ services:
environment:
RUNTIME_ENV: prod-root
ports:
- 8004:8000 # host:container
- 8000:8000 # host:container
volumes:
- a2rchi-prod-root-data:/chroma/chroma/
logging:
Expand Down
9 changes: 9 additions & 0 deletions deploy/ssh_config
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ Host submit-t3desk
IdentityFile ~/.ssh/id_rsa_submit
StrictHostKeyChecking no


Host submit-t3desk018
HostName t3desk018.mit.edu
User a2rchi
IdentitiesOnly=yes
PreferredAuthentications publickey
PasswordAuthentication no
IdentityFile ~/.ssh/id_rsa_submit
StrictHostKeyChecking no

0 comments on commit 9253aae

Please sign in to comment.