Skip to content

Commit d21ca61

Browse files
committed
Fixes #140
1 parent 2e69f61 commit d21ca61

File tree

6 files changed

+1346
-1301
lines changed

6 files changed

+1346
-1301
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The only required input is `project-name`.
2121
The location (in this repository) of the [buildspec file][codebuild buildspec]
2222
that CodeBuild requires.
2323
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+
2626
Alternatively, you can pass in an inline buildspec definition like so:
2727

2828
```
@@ -50,13 +50,14 @@ The only required input is `project-name`.
5050
- npm prune --production
5151
post_build:
5252
commands:
53-
- echo Build completed on `date`
53+
- echo Build completed on `date`
5454
artifacts:
5555
type: zip
5656
files:
5757
- package.json
5858
- package-lock.json
5959
```
60+
6061
1. **compute-type-override** (optional) :
6162
The name of a compute type for this build that overrides the one specified
6263
in the build project.
@@ -66,6 +67,8 @@ The only required input is `project-name`.
6667
1. **image-override** (optional) :
6768
The name of an image for this build that overrides the one specified
6869
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.
6972
1. **disable-source-override** (optional) :
7073
Set to `true` if you want to disable providing `sourceVersion`,
7174
`sourceTypeOverride` and `sourceLocationOverride` to CodeBuild.

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ inputs:
1919
image-override:
2020
description: 'The name of an image for this build that overrides the one specified in the build project.'
2121
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
2225
env-vars-for-codebuild:
2326
description: 'Comma separated list of environment variables to send to CodeBuild'
2427
required: false

code-build.js

+9
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,15 @@ function githubInputs() {
190190
const environmentTypeOverride =
191191
core.getInput("environment-type-override", { required: false }) ||
192192
undefined;
193+
193194
const imageOverride =
194195
core.getInput("image-override", { required: false }) || undefined;
195196

197+
const imagePullCredentialsTypeOverride =
198+
core.getInput("image-pull-credentials-type-override", {
199+
required: false,
200+
}) || undefined;
201+
196202
const envPassthrough = core
197203
.getInput("env-vars-for-codebuild", { required: false })
198204
.split(",")
@@ -222,6 +228,7 @@ function githubInputs() {
222228
computeTypeOverride,
223229
environmentTypeOverride,
224230
imageOverride,
231+
imagePullCredentialsTypeOverride,
225232
envPassthrough,
226233
updateInterval,
227234
updateBackOff,
@@ -240,6 +247,7 @@ function inputs2Parameters(inputs) {
240247
computeTypeOverride,
241248
environmentTypeOverride,
242249
imageOverride,
250+
imagePullCredentialsTypeOverride,
243251
envPassthrough = [],
244252
disableSourceOverride,
245253
} = inputs;
@@ -267,6 +275,7 @@ function inputs2Parameters(inputs) {
267275
computeTypeOverride,
268276
environmentTypeOverride,
269277
imageOverride,
278+
imagePullCredentialsTypeOverride,
270279
environmentVariablesOverride,
271280
};
272281
}

0 commit comments

Comments
 (0)