29 lines
621 B
YAML
29 lines
621 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: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
- name: Push to dokku
|
|
env:
|
|
HOST_KEY: ${{ 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
|