-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02f774d
commit 12b4446
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH into Hozer | ||
uses: appleboy/[email protected] | ||
with: | ||
host: hozer-51.ocf.berkeley.edu | ||
username: root | ||
key: ${{ secrets.SSH_KEY }} | ||
script: | | ||
- name: SSH | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
ssh -i ~/.ssh/id_rsa [email protected] << EOF | ||
cd /berkeleytime | ||
git checkout ${{ github.event.pull_request.head.sha }} | ||
git pull | ||
|
@@ -32,4 +31,5 @@ jobs: | |
--set redisUri=redis://bt-dev-redis-master.bt.svc.cluster.local:6379 \ | ||
--set nodeEnv=development \ | ||
--set frontend.image.tag=${{ github.event.pull_request.head.sha }} \ | ||
--set backend.image.tag=${{ github.event.pull_request.head.sha }} | ||
--set backend.image.tag=${{ github.event.pull_request.head.sha }} | ||
EOF |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH into Hozer | ||
uses: appleboy/[email protected] | ||
with: | ||
host: hozer-51.ocf.berkeley.edu | ||
username: root | ||
key: ${{ secrets.SSH_KEY }} | ||
script: | | ||
- name: SSH | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
ssh -i ~/.ssh/id_rsa [email protected] << EOF | ||
cd /berkeleytime | ||
git checkout master | ||
git pull | ||
|
@@ -27,4 +26,5 @@ jobs: | |
docker push octoberkeleytime/bt-backend:latest | ||
docker push octoberkeleytime/bt-frontend:latest | ||
kubectl rollout restart deployment bt-staging-app-backend | ||
kubectl rollout restart deployment bt-staging-app-frontend | ||
kubectl rollout restart deployment bt-staging-app-frontend | ||
EOF |