Skip to content

Commit

Permalink
build(onprem-build): Add steps to update on-prem staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
billshitg committed Jun 13, 2024
1 parent dbc49e6 commit e81e7f8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/onprem-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,18 @@ jobs:
push: true
tags: |
${{ env.IMAGE }}
tigergraphml/copilot:latest
tigergraphml/copilot:latest
- name: Set SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Update on-prem staging environment
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.DEV_USERNAME }}@${{ secrets.STAGE_ADDRESS }} << 'ENDSSH'
cd CoPilot
docker compose pull
docker compose up -d
ENDSSH

0 comments on commit e81e7f8

Please sign in to comment.