6
6
on :
7
7
workflow_call :
8
8
inputs :
9
+ runner-type :
10
+ description : " Runner type"
11
+ default : " ubuntu-22.04"
12
+ required : false
13
+ type : string
9
14
compose-file-cache-key :
10
15
description : " GHA Cache Key for Docker Compose file ready to deploy"
11
16
required : true
30
35
type : string
31
36
pr-number :
32
37
description : " GitHub Pull Request Number"
33
- default : ' '
38
+ default : " "
34
39
required : false
35
40
type : string
36
41
git-ref :
37
42
description : " Branch or other git reference to checkout"
38
- default : ' '
43
+ default : " "
39
44
required : false
40
45
type : string
41
46
healthcheck-url-path :
42
47
description : " URL Path to the Uffizzi Preview URL where healthcheck would be performed. The URL Path has to start with a '/'."
43
- default : ' '
48
+ default : " "
44
49
required : false
45
50
type : string
46
51
description :
47
52
description : " Text string added to comment on pull request issue"
48
- default : ' What is Uffizzi? [Learn more](https://www.uffizzi.com)!'
53
+ default : " What is Uffizzi? [Learn more](https://www.uffizzi.com)!"
49
54
required : false
50
55
type : string
51
56
environment :
52
- description : ' Custom environment for the deployed preview'
53
- default : ' uffizzi'
57
+ description : " Custom environment for the deployed preview"
58
+ default : " uffizzi"
54
59
required : false
55
60
type : string
56
61
secrets :
57
62
access-token :
58
- description : ' Github pipeline token'
63
+ description : " Github pipeline token"
59
64
required : false
60
65
password :
61
66
description : " Uffizzi password for login"
70
75
description : " GitHub personal access token with access to container registry"
71
76
required : false
72
77
dockerhub-username :
73
- description : ' DockerHub username'
78
+ description : " DockerHub username"
74
79
required : false
75
80
dockerhub-password :
76
- description : ' DockerHub password'
81
+ description : " DockerHub password"
77
82
required : false
78
83
acr-username :
79
- description : ' Azure username'
84
+ description : " Azure username"
80
85
required : false
81
86
acr-password :
82
- description : ' Azure password'
87
+ description : " Azure password"
83
88
required : false
84
89
acr-registry-url :
85
- description : ' Azure registry url'
90
+ description : " Azure registry url"
86
91
required : false
87
92
aws-access-key-id :
88
- description : ' Amazon Web Services access key id'
93
+ description : " Amazon Web Services access key id"
89
94
required : false
90
95
aws-secret-access-key :
91
- description : ' Amazon Web Services secret access key'
96
+ description : " Amazon Web Services secret access key"
92
97
required : false
93
98
aws-registry-url :
94
- description : ' Amazon Web Services registry url'
99
+ description : " Amazon Web Services registry url"
95
100
required : false
96
101
gcloud-service-key :
97
- description : ' Google Cloud service key'
102
+ description : " Google Cloud service key"
98
103
required : false
99
104
docker-registry-username :
100
- description : ' Custom docker registry username'
105
+ description : " Custom docker registry username"
101
106
required : false
102
107
docker-registry-password :
103
- description : ' Custom docker registry password'
108
+ description : " Custom docker registry password"
104
109
required : false
105
110
docker-registry-url :
106
- description : ' Custom docker registry url'
111
+ description : " Custom docker registry url"
107
112
required : false
108
-
113
+
109
114
outputs :
110
115
url :
111
116
description : " URL to Uffizzi Preview Environment"
114
119
description : " Uffizzi Preview Deployment ID"
115
120
value : ${{ jobs.uffizzi-preview.outputs.id }}
116
121
containers_uri :
117
- description : ' URL to Uffizzi Deployment Details'
122
+ description : " URL to Uffizzi Deployment Details"
118
123
value : ${{ jobs.uffizzi-preview.outputs.containers_uri }}
119
124
expiration_interval :
120
125
description : " Uffizzi Preview Expiration Interval in Seconds"
@@ -134,7 +139,7 @@ permissions:
134
139
jobs :
135
140
uffizzi-preview :
136
141
name : " Create, Update, or Delete Preview on Uffizzi"
137
- runs-on : ubuntu-22.04
142
+ runs-on : ${{ inputs.runner-type }}
138
143
environment :
139
144
name : ${{ inputs.environment }}
140
145
url : " ${{ steps.outputs.outputs.url }}"
@@ -195,8 +200,8 @@ jobs:
195
200
id : find-comment
196
201
with :
197
202
issue-number : ${{ env.PR_NUMBER }}
198
- comment-author : ' github-actions[bot]'
199
- body-includes : ' ${{ env.EXPECTED_URL }}'
203
+ comment-author : " github-actions[bot]"
204
+ body-includes : " ${{ env.EXPECTED_URL }}"
200
205
direction : last
201
206
202
207
- name : Determine Operation
@@ -265,7 +270,7 @@ jobs:
265
270
- name : Fetch cached Compose File
266
271
id : cache
267
272
if : ${{ contains(fromJSON('["create", "update"]'), env.UFFIZZI_ACTION) }}
268
- uses : actions/cache@v3
273
+ uses : actions/cache@v4
269
274
with :
270
275
path : ${{ inputs.compose-file-cache-path }}
271
276
key : ${{ inputs.compose-file-cache-key }}
0 commit comments