-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
153 lines (152 loc) · 4.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: 'Forge Review-app Action'
description: 'Create/update and deploy a review-application to Laravel Forge'
author: 'rygilles'
branding:
icon: upload-cloud
color: green
inputs:
forge_api_token:
description: 'Laravel Forge API key'
required: true
forge_server_id:
description: 'Laravel Forge server ID'
required: true
root_domain:
description: 'Root domain under which to create review-app site'
required: false
host:
description: 'Site host of the review-app'
required: false
prefix_with_pr_number:
description: 'Use the pull-request number as host and database prefix when host is not manually defined'
required: false
default: 'true'
fqdn_prefix:
description: 'Prefix the whole FQDN (e.g.: "app.")'
required: false
project_type:
description: 'Project type of the review-app'
required: false
default: 'php'
directory:
description: 'Root directory for nginx configuration of the review-app'
required: false
default: '/public'
isolated:
description: 'Isolate review-app site'
required: false
default: 'false'
php_version:
description: 'PHP version of the review-app site'
required: false
default: 'php81'
create_database:
description: 'Create database for review-app'
required: false
default: 'false'
database_user:
description: 'Database user of the review-app site'
required: false
default: 'forge'
database_password:
description: 'Database password of the review-app site'
required: false
database_name:
description: 'Database name of the review-app site'
required: false
database_name_prefix:
description: 'Database name prefix, useful for PostgreSQL that does not support digits (PR number) for first chars'
nginx_template:
description: 'Nginx template to use (default template if not defined)'
required: false
configure_repository:
description: 'Configure repository on review-app site'
required: false
default: 'true'
repository_provider:
description: 'Repository provider of review-app site'
required: false
default: 'github'
repository:
description: 'Repository of review-app site'
required: false
branch:
description: 'Git branch to use'
required: false
composer:
description: 'Composer install on repository setup'
required: false
default: 'false'
letsencrypt_certificate:
description: 'Obtain LetsEncrypt certificate for the review-app site'
required: false
default: 'true'
certificate_setup_timeout:
description: 'Maximum wait time in seconds for obtaining the certificate'
required: false
default: '120'
env_stub_path:
description: '.env stub file path inside git repository'
required: false
default: '.github/workflows/.env.stub'
deploy_script_stub_path:
description: 'Deploy script stub file path inside the git repository'
required: false
default: '.github/workflows/deploy-script.stub'
deployment_timeout:
description: 'Maximum wait time in seconds for deploying'
required: false
default: '120'
deployment_auto_source:
description: 'Whether to automatically source environment variables into the deployment script'
required: false
default: 'true'
create_worker:
description: 'Create site worker'
required: false
default: 'false'
worker_connection:
description: 'Worker connection (if creation is requested)'
required: false
default: 'redis'
worker_timeout:
description: 'Worker timeout in seconds (if creation is requested)'
required: false
default: '90'
worker_sleep:
description: 'Worker sleep in seconds (if creation is requested)'
required: false
default: '60'
worker_tries:
description: 'Worker maximum tries (if creation is requested)'
required: false
worker_processes:
description: 'Worker processes (if creation is requested)'
required: false
default: '1'
worker_stopwaitsecs:
description: 'Worker stop wait secs (if creation is requested)'
required: false
default: '600'
worker_php_version:
description: 'Worker PHP version (if creation is requested). `php_version` input value will be used if not defined'
required: false
worker_daemon:
description: 'Worker "daemon" (if creation is requested)'
required: false
default: 'true'
worker_force:
description: 'Worker "force" (if creation is requested)'
required: false
default: 'false'
worker_queue:
description: 'Worker queue (if creation is requested). Default queue will be used if not defined.'
required: false
outputs:
host:
description: 'Host of the review-app (generated or forced one in inputs)'
database_name:
description: 'Database name of the review-app (generated or forced one in inputs)'
runs:
using: 'docker'
image: 'Dockerfile'