-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
48 lines (48 loc) · 1.46 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Dokku Deploy GitHub Action"
author: "Samu Linden"
description: "Deploy a Git subtree to dokku."
branding:
icon: "upload-cloud"
color: "green"
inputs:
ssh-private-key:
description: "The ssh private key to the dokku instance. WARNING: use a secret! Do not pass a plain text value!"
required: true
dokku-user:
description: "The user to use for ssh (Default: dokku)"
required: false
default: "dokku"
dokku-host:
description: "The dokku host to ssh into"
required: true
dokku-ip-address:
description: "Dokku server IP address. Needed only if your domain points to a proxy (eg. CloudFlare)"
required: false
default: ""
app-name:
description: "The dokku app name"
required: true
remote-branch:
description: "The branch to push on the remote repository (Default: master)"
required: false
default: "master"
git-push-flags:
description: "Additional flags to be passed to the git push command. Could be used to force push"
required: false
default: ""
git-subtree-prefix:
description: "The directory to be pushed to dokku."
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.ssh-private-key }}
- ${{ inputs.dokku-user }}
- ${{ inputs.dokku-host }}
- ${{ inputs.dokku-ip-address }}
- ${{ inputs.app-name }}
- ${{ inputs.remote-branch }}
- ${{ inputs.git-push-flags }}
- ${{ inputs.git-subtree-prefix }}
- ${{ inputs.force-push-subtree }}