-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
45 lines (45 loc) · 1.26 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
name: "Deploy Dispatcher"
description: "Deploy Code to Remote Server using rsync"
author: "TremiDkhar"
branding:
icon: "upload-cloud"
color: "blue"
version: "0.1.0"
inputs:
remote_host:
description: "Remote Host"
required: true
remote_user:
description: "Remote User"
required: true
remote_path:
description: "Remote Path"
required: true
ssh_private_key:
description: "SSH Private Key"
required: false
ssh_private_key_password:
description: "The SSH Private Key Password"
required: false
ssh_login_password:
description: "The SSH login passphrase/password"
required: false
rsync_switches:
description: "rsync switches"
required: true
default: "-az --chown=www-data:www-data --progress"
runs:
using: 'composite'
steps:
- name: "Deploy"
env:
REMOTE_HOST: ${{ inputs.remote_host }}
REMOTE_USER: ${{ inputs.remote_user }}
REMOTE_PATH: ${{ inputs.remote_path }}
SSH_LOGIN_PASSWORD: ${{ inputs.ssh_login_password }}
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
SSH_PRIVATE_KEY_PASSWORD: ${{ inputs.ssh_private_key_password }}
run: |
chmod +x ${{ github.action_path }}/deploy.sh
${{ github.action_path }}/deploy.sh
shell: bash