Skip to content

Commit

Permalink
Feature/update GitHub actions (#23)
Browse files Browse the repository at this point in the history
* feat: update actions with db

* fix: ci action db env

* fix: Dockerfile path

* add white space

* fix: revert ci testing

* feat: added dev cd

* fix: dockerfile

* feat: update actions with db

* fix: ci action db env

* add white space

* feat: added dev cd

* fix: scp command

* fix: dockerfile

* feat: update actions with db

* add white space

* feat: update actions with db

* fix: ci action db env

* add white space

* fix: private key in scp and ssh
  • Loading branch information
ManasC478 authored Oct 12, 2024
1 parent e39415c commit 1e85d4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ jobs:
- name: SCP core files
run: |
scp -r docker-compose.yml nginx.conf db-scripts/ .env ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}:~/
scp -i ~/.ssh/id_rsa -r docker-compose.yml nginx.conf db-scripts/ .env ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}:~/
- name: SSH into server
run: |
ssh -o StrictHostKeyChecking=no ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}
ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ${{ vars.SERVER_USER }}@${{ vars.SERVER_IP }}
docker compose down
docker compose up --build -d

0 comments on commit 1e85d4e

Please sign in to comment.