File tree 6 files changed +1346
-1301
lines changed
6 files changed +1346
-1301
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ The only required input is `project-name`.
21
21
The location (in this repository) of the [ buildspec file] [ codebuild buildspec ]
22
22
that CodeBuild requires.
23
23
By default, the action uses the buildspec file location
24
- that you configured in the CodeBuild project.
25
-
24
+ that you configured in the CodeBuild project.
25
+
26
26
Alternatively, you can pass in an inline buildspec definition like so:
27
27
28
28
```
@@ -50,13 +50,14 @@ The only required input is `project-name`.
50
50
- npm prune --production
51
51
post_build:
52
52
commands:
53
- - echo Build completed on `date`
53
+ - echo Build completed on `date`
54
54
artifacts:
55
55
type: zip
56
56
files:
57
57
- package.json
58
58
- package-lock.json
59
59
```
60
+
60
61
1 . ** compute-type-override** (optional) :
61
62
The name of a compute type for this build that overrides the one specified
62
63
in the build project.
@@ -66,6 +67,8 @@ The only required input is `project-name`.
66
67
1 . ** image-override** (optional) :
67
68
The name of an image for this build that overrides the one specified
68
69
in the build project.
70
+ 1 . ** image-pull-credentials-type-override** (optional) :
71
+ The type of credentials CodeBuild uses to pull images in your build.
69
72
1 . ** disable-source-override** (optional) :
70
73
Set to ` true ` if you want to disable providing ` sourceVersion ` ,
71
74
` sourceTypeOverride ` and ` sourceLocationOverride ` to CodeBuild.
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ inputs:
19
19
image-override :
20
20
description : ' The name of an image for this build that overrides the one specified in the build project.'
21
21
required : false
22
+ image-pull-credentials-type-override :
23
+ description : ' The type of credentials CodeBuild uses to pull images in your build.'
24
+ required : false
22
25
env-vars-for-codebuild :
23
26
description : ' Comma separated list of environment variables to send to CodeBuild'
24
27
required : false
Original file line number Diff line number Diff line change @@ -190,9 +190,15 @@ function githubInputs() {
190
190
const environmentTypeOverride =
191
191
core . getInput ( "environment-type-override" , { required : false } ) ||
192
192
undefined ;
193
+
193
194
const imageOverride =
194
195
core . getInput ( "image-override" , { required : false } ) || undefined ;
195
196
197
+ const imagePullCredentialsTypeOverride =
198
+ core . getInput ( "image-pull-credentials-type-override" , {
199
+ required : false ,
200
+ } ) || undefined ;
201
+
196
202
const envPassthrough = core
197
203
. getInput ( "env-vars-for-codebuild" , { required : false } )
198
204
. split ( "," )
@@ -222,6 +228,7 @@ function githubInputs() {
222
228
computeTypeOverride,
223
229
environmentTypeOverride,
224
230
imageOverride,
231
+ imagePullCredentialsTypeOverride,
225
232
envPassthrough,
226
233
updateInterval,
227
234
updateBackOff,
@@ -240,6 +247,7 @@ function inputs2Parameters(inputs) {
240
247
computeTypeOverride,
241
248
environmentTypeOverride,
242
249
imageOverride,
250
+ imagePullCredentialsTypeOverride,
243
251
envPassthrough = [ ] ,
244
252
disableSourceOverride,
245
253
} = inputs ;
@@ -267,6 +275,7 @@ function inputs2Parameters(inputs) {
267
275
computeTypeOverride,
268
276
environmentTypeOverride,
269
277
imageOverride,
278
+ imagePullCredentialsTypeOverride,
270
279
environmentVariablesOverride,
271
280
} ;
272
281
}
You can’t perform that action at this time.
0 commit comments