You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of credentials CodeBuild uses to pull images in your build.
72
+
1.**disable-source-override** (optional) :
73
+
Set to `true` if you want to disable providing `sourceVersion`,
74
+
`sourceTypeOverride` and `sourceLocationOverride` to CodeBuild.
34
75
1.**env-vars-for-codebuild** (optional) :
35
76
A comma-separated list of the names of environment variables
36
77
that the action passes from GitHub Actions to CodeBuild.
@@ -46,6 +87,37 @@ The only required input is `project-name`.
46
87
the one defined here replaces the one in the CodeBuild project.
47
88
For a list of CodeBuild environment variables, see
48
89
90
+
1.**update-interval** (optional) :
91
+
Update interval as seconds for how often the API is called to check on the status.
92
+
93
+
A higher value mitigates the chance of hitting API rate-limiting especially when
94
+
running many instances of this action in parallel, but also introduces a larger
95
+
potential time overhead (ranging from 0 to update interval) for the action to
96
+
fetch the build result and finish.
97
+
98
+
Lower value limits the potential time overhead worst case but it may hit the API
99
+
rate-limit more often, depending on the use-case.
100
+
101
+
The default value is 30.
102
+
103
+
1.**update-back-off** (optional) :
104
+
Base back-off time in seconds for the update interval.
105
+
106
+
When API rate-limiting is hit the back-off time, augmented with jitter, will be
107
+
added to the next update interval.
108
+
E.g. with update interval of 30 and back-off time of 15, upon hitting the rate-limit
109
+
the next interval for the update call will be 30 + random*between(0, 15 * 2 \*\* 0))
110
+
seconds and if the rate-limit is hit again the next interval will be
111
+
30 + random*between(0, 15 * 2 \*\* 1) and so on.
112
+
113
+
The default value is 15.
114
+
115
+
1.**hide-cloudwatch-logs** (optional) :
116
+
Set to `true` if you do not want CloudWatch Logs to be streamed to GitHub Action.
117
+
118
+
1.**disable-github-env-vars** (optional) :
119
+
Set to `true` if you want do disable github environment variables in codebuild.
120
+
49
121
### Outputs
50
122
51
123
1.**aws-build-id** : The CodeBuild build ID of the build that the action ran.
@@ -170,7 +242,7 @@ this will overwrite them.
170
242
uses: aws-actions/aws-codebuild-run-build@v1
171
243
with:
172
244
project-name: CodeBuildProjectName
173
-
buildspec-override: path/to/buildspec.yaml
245
+
buildspec-override: path/to/buildspec.yaml or inline buildspec definition
174
246
compute-type-override: compute-type
175
247
environment-type-override: environment-type
176
248
image-override: ecr-image-uri
@@ -220,9 +292,9 @@ Otherwise, it fails.
220
292
221
293
In the call to StartBuild, we pass in all
222
294
`GITHUB_` [environment variables][github environment variables] in the GitHub Actions environment,
223
-
plus any environment variables that you specified in the `evn-passthrough` input value.
295
+
plus any environment variables that you specified in the `env-passthrough` input value.
224
296
225
-
Regardless of the project configuration in CodeBuild or GitHub Actions,
297
+
By default, regardless of the project configuration in CodeBuild or GitHub Actions,
226
298
we always pass the following parameters and values to CodeBuild in the StartBuild API call.
227
299
228
300
| CodeBuild value | GitHub value |
@@ -231,6 +303,8 @@ we always pass the following parameters and values to CodeBuild in the StartBuil
231
303
| `sourceTypeOverride` | The string `'GITHUB'` |
232
304
| `sourceLocationOverride` | The `HTTPS` git url for `context.repo` |
233
305
306
+
If you want to disable sending the parameters `sourceVersion`, `sourceTypeOverride` and `sourceLocationOverride` you can use `disable-source-override` input.
307
+
234
308
### What we did not do
235
309
236
310
This action intentionally does not let you specify every option
@@ -250,6 +324,12 @@ For this reason, and to simplify what we expect to be the most common use-cases,
250
324
we chose to start with the simplest possible configuration.
251
325
If you find that these options don't meet your needs, please open an issue to let us know.
252
326
327
+
## Release Process
328
+
329
+
By creating a new Release a workflow is triggered creating a new commit which only contains `dist` and the `action.yml`. The necessary tags, i.e. for the release v1.0.7, the tag v1.0.7 is created and the v1.0 and v1 tags are updated.
330
+
331
+
For the tagging and building the [build-and-tag](https://github.com/JasonEtco/build-and-tag-action) action by [Jason Etcovitch](https://github.com/JasonEtco) is used. It expects to have the main attribute and a build script to be set in the `package.json`. It then builds the code with the ncc compiler and creates the new tag/ updates existing tags for minor and major versions automatically.
0 commit comments