From ee44c0188befe0d5f499bdc333c62be1c3e497d0 Mon Sep 17 00:00:00 2001 From: Rohit Sah Date: Sun, 6 Aug 2023 12:13:54 +0545 Subject: [PATCH] ci(root): :rocket: set automated deployment for backend --- .github/workflows/deploy.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0649909..751a566 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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://azureuser@20.204.142.65/api" - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} +steps: + - name: executing remote ssh commands using password + uses: appleboy/ssh-action@v1.0.0 + 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