Skip to content

Commit

Permalink
Merge pull request #3 from asyade/devops/deploy-to-dev-instance
Browse files Browse the repository at this point in the history
Devops/deploy to dev instance
  • Loading branch information
asyade authored Jan 6, 2024
2 parents 50a9eb5 + e7a3f92 commit 3d32fa7
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,27 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: actions-rs/cargo@v1
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
args: -p rave-app-backend --release

- name: push binary to dev instance
uses: appleboy/[email protected]
with:
host: ec2-52-47-32-158.eu-west-3.compute.amazonaws.com
username: ubuntu
key: "${{ secrets.SSH_PRIVATE_KEY_DEV_INSTANCE }}"
port: 22
source: "./target/release/rave-app-backend"
target: /home/ubuntu/

- name: restart dev service
uses: appleboy/[email protected]
with:
host: ec2-52-47-32-158.eu-west-3.compute.amazonaws.com
username: ubuntu
key: "${{ secrets.SSH_PRIVATE_KEY_DEV_INSTANCE }}"
port: 22
script: whoami

0 comments on commit 3d32fa7

Please sign in to comment.