Skip to content

Commit

Permalink
chore: Update Deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
itsamirhn committed Nov 10, 2024
1 parent c6e6eb7 commit 5dc058e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
REMOTE_HOST: ${{ secrets.SSH_HOST }}
REMOTE_USER: ${{ secrets.SSH_USERNAME }}
SOURCE: docker-compose.yaml
SCRIPT_AFTER: |
TAG=${{ github.ref_name }} docker compose up -d
fetch-depth: 0

- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@${{ vars.DOKKU_HOST }}:22/${{ vars.DOKKU_APP_NAME }}'
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
deploy_docker_image: 'ghcr.io/itsamirhn/bonbast-api:${{ github.ref_name }}'

0 comments on commit 5dc058e

Please sign in to comment.