Skip to content

Commit

Permalink
ci(root): 🚀 set automated deployment for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sahrohit committed Aug 6, 2023
1 parent b478eb3 commit ee44c01
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ on:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: "ssh://[email protected]/api"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: "hamroapi.rudejellyfish.live"
username: "azureuser"
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: dokku git:sync --build api https://github.com/sahrohit/fullstack-ecommmerce.git main

1 comment on commit ee44c01

@vercel
Copy link

@vercel vercel bot commented on ee44c01 Aug 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.