core/.github/workflows/deploy.yml
Untone dd60d1a1c4
All checks were successful
Deploy on push / deploy (push) Successful in 5s
deployfix
2024-11-01 14:33:34 +03:00

29 lines
649 B
YAML

name: Deploy
on:
push:
branches:
- main
jobs:
push_to_target_repository:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ github.action.secrets.SSH_PRIVATE_KEY }}
- name: Push to dokku
env:
HOST_KEY: ${{ github.action.secrets.HOST_KEY }}
run: |
echo $HOST_KEY > ~/.ssh/known_hosts
git remote add dokku dokku@v2.discours.io:discoursio-api
git push dokku HEAD:main -f