-
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
7bda9ef
commit db05fac
Showing
1 changed file
with
7 additions
and
23 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,26 +10,10 @@ 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: | | ||
cd /berkeleytime | ||
git checkout ${{ github.event.pull_request.head.sha }} | ||
git pull | ||
docker compose up --build -d | ||
docker tag berkeleytime-backend octoberkeleytime/bt-backend:${{ github.event.pull_request.head.sha }} | ||
docker tag berkeleytime-frontend octoberkeleytime/bt-frontend:${{ github.event.pull_request.head.sha }} | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
docker push octoberkeleytime/bt-backend:${{ github.event.pull_request.head.sha }} | ||
docker push octoberkeleytime/bt-frontend:${{ github.event.pull_request.head.sha }} | ||
helm install bt-dev-app ./app --namespace=bt \ | ||
--set host=${{ github.event.pull_request.head.sha }}.stanfurdtime.com \ | ||
--set mongoUri=mongodb://bt-dev-mongo-mongodb.bt.svc.cluster.local:27017/bt \ | ||
--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 }} | ||
- name: Setup SSH Key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_KEY }} | ||
- name: SSH into Hozer | ||
run: | | ||
ssh [email protected] "echo 'test'" |