Skip to content

Commit

Permalink
adding back deployment with more security
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Dec 19, 2024
1 parent 072af15 commit 323e20f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ jobs:
with:
name: frontend

- name: Test port 2222
run: nc -zv ${{secrets.BASTION_SSSH_URI}} 2222

- name: Update Frontend
run: scp -o "StrictHostKeyChecking no" -A -R -J ${{secrets.BASTION_SSH_URI}} . ${{secrets.DEPLOYMENT_TARGET}}:/home/infra/frontend_content
run: scp -o "StrictHostKeyChecking no" -A -R -J ${{secrets.BASTION_SSH_URI}}:2222 . ${{secrets.DEPLOYMENT_TARGET}}:/home/infra/frontend_content

- name: Update Backend
run: ssh -o "StrictHostKeyChecking no" -A -J ${{secrets.BASTION_SSH_URI}} ${{secrets.DEPLOYMENT_TARGET}} "bash -c \"cd billtracker && export BILLTRACKER_VERSION=${{ github.sha }} && docker compose pull app && docker compose up -d app\""
run: ssh -o "StrictHostKeyChecking no" -A -J ${{secrets.BASTION_SSH_URI}}:2222 ${{secrets.DEPLOYMENT_TARGET}} "bash -c \"cd billtracker && export BILLTRACKER_VERSION=${{ github.sha }} && docker compose pull app && docker compose up -d app\""

0 comments on commit 323e20f

Please sign in to comment.