mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Update main.yml
This commit is contained in:
parent
de78eb3926
commit
a7f6d087bf
27
.github/workflows/main.yml
vendored
27
.github/workflows/main.yml
vendored
@ -7,21 +7,26 @@ on:
|
|||||||
# branches: [ main ]
|
# branches: [ main ]
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOKKU_HOST: 'dokku.danbee.in'
|
||||||
|
DOKKU_APP_NAME: 'me'
|
||||||
|
DOKKU_REMOTE_BRANCH: 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
environment: Dokku Deploy
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
- uses: webfactory/ssh-agent@v0.5.4
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: woudsma/dokku-deploy-github-action@v1
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
dokku-host: ${{ env.DOKKU_HOST }}
|
||||||
- name: Run a multi-line script
|
app-name: ${{ env.DOKKU_APP_NAME }}
|
||||||
run: |
|
app-remote-branch: ${{ env.DOKKU_REMOTE_BRANCH }}
|
||||||
git remote add dokku dokku@dokku.danbee.in:me
|
|
||||||
git push dokku
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user