fmt+refactor
All checks were successful
Deploy on push / deploy (push) Successful in 24s

This commit is contained in:
2024-02-23 19:35:40 +03:00
parent 14947225a6
commit e80b3ac770
9 changed files with 307 additions and 119 deletions

View File

@@ -1,10 +1,5 @@
name: 'Deploy to core'
on:
push:
branches:
- main
- dev
name: 'Deploy on push'
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
@@ -25,6 +20,6 @@ jobs:
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: 'dev'
git_remote_url: 'ssh://dokku@v2.discours.io:22/core'
branch: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main' || 'dev' }}
git_remote_url: ${{ github.ref == 'refs/heads/dev' && 'ssh://dokku@v2.discours.io:22/core' || 'ssh://dokku@staging.discours.io:22/core' }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}