Skip to content

Commit 5dc058e

Browse files
committed
chore: Update Deploy action
1 parent c6e6eb7 commit 5dc058e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ jobs:
5353
steps:
5454
- name: Checkout
5555
uses: actions/checkout@v4
56-
- name: Deploy to server
57-
uses: easingthemes/ssh-deploy@main
5856
with:
59-
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
60-
REMOTE_HOST: ${{ secrets.SSH_HOST }}
61-
REMOTE_USER: ${{ secrets.SSH_USERNAME }}
62-
SOURCE: docker-compose.yaml
63-
SCRIPT_AFTER: |
64-
TAG=${{ github.ref_name }} docker compose up -d
57+
fetch-depth: 0
58+
59+
- name: Push to dokku
60+
uses: dokku/github-action@master
61+
with:
62+
git_remote_url: 'ssh://dokku@${{ vars.DOKKU_HOST }}:22/${{ vars.DOKKU_APP_NAME }}'
63+
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
64+
deploy_docker_image: 'ghcr.io/itsamirhn/bonbast-api:${{ github.ref_name }}'

0 commit comments

Comments
 (0)