-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
28 lines (28 loc) · 820 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# action.yml
name: 'Push to Dokku'
description: 'Easily deploy an app to your Dokku Instance'
author: 'Olivier Brassard'
branding:
icon: 'send'
color: 'purple'
inputs:
dokku_repo:
description: "The dokku app's git repository url (in SSH format)"
required: true
ssh_key:
description: 'A private SSH key that has push acces to your Dokku instance'
required: true
deploy_branch:
description: 'The branch to be deployed when pushing to Dokku (default: master)'
required: false
default: "master"
runs:
using: 'docker'
image: 'Dockerfile'
entrypoint: '/app/entrypoint.sh'
post-entrypoint: '/app/dokku-unlock.sh'
post-if: cancelled()
env:
SSH_PRIVATE_KEY : ${{ inputs.ssh_key }}
DOKKU_REPO : ${{ inputs.dokku_repo }}
DEPLOY_BRANCH : ${{ inputs.deploy_branch }}