@pulumi/docker-build 0.0.1-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +23 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +6 -0
- package/config/vars.js +21 -0
- package/config/vars.js.map +1 -0
- package/image.d.ts +916 -0
- package/image.js +567 -0
- package/image.js.map +1 -0
- package/index.d.ts +13 -0
- package/index.js +58 -0
- package/index.js.map +1 -0
- package/index_.d.ts +152 -0
- package/index_.js +142 -0
- package/index_.js.map +1 -0
- package/package.json +29 -0
- package/package.json.dev +28 -0
- package/provider.d.ts +31 -0
- package/provider.js +41 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/types/enums/index.d.ts +72 -0
- package/types/enums/index.js +74 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +765 -0
- package/types/input.js +118 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +764 -0
- package/types/output.js +117 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,764 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
|
+
import * as enums from "../types/enums";
|
|
3
|
+
export interface BuildContext {
|
|
4
|
+
/**
|
|
5
|
+
* Resources to use for build context.
|
|
6
|
+
*
|
|
7
|
+
* The location can be:
|
|
8
|
+
* * A relative or absolute path to a local directory (`.`, `./app`,
|
|
9
|
+
* `/app`, etc.).
|
|
10
|
+
* * A remote URL of a Git repository, tarball, or plain text file
|
|
11
|
+
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
12
|
+
* etc.).
|
|
13
|
+
*/
|
|
14
|
+
location: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional build contexts to use.
|
|
17
|
+
*
|
|
18
|
+
* These contexts are accessed with `FROM name` or `--from=name`
|
|
19
|
+
* statements when using Dockerfile 1.4+ syntax.
|
|
20
|
+
*
|
|
21
|
+
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
|
22
|
+
*/
|
|
23
|
+
named?: {
|
|
24
|
+
[key: string]: outputs.Context;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface BuilderConfig {
|
|
28
|
+
/**
|
|
29
|
+
* Name of an existing buildx builder to use.
|
|
30
|
+
*
|
|
31
|
+
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
|
32
|
+
* supported. The legacy `docker` driver is not supported.
|
|
33
|
+
*
|
|
34
|
+
* Equivalent to Docker's `--builder` flag.
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface CacheFrom {
|
|
39
|
+
/**
|
|
40
|
+
* Upload build caches to Azure's blob storage service.
|
|
41
|
+
*/
|
|
42
|
+
azblob?: outputs.CacheFromAzureBlob;
|
|
43
|
+
/**
|
|
44
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Recommended for use with GitHub Actions workflows.
|
|
49
|
+
*
|
|
50
|
+
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
51
|
+
* expose appropriate credentials to your GitHub workflow.
|
|
52
|
+
*/
|
|
53
|
+
gha?: outputs.CacheFromGitHubActions;
|
|
54
|
+
/**
|
|
55
|
+
* A simple backend which caches images on your local filesystem.
|
|
56
|
+
*/
|
|
57
|
+
local?: outputs.CacheFromLocal;
|
|
58
|
+
/**
|
|
59
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
60
|
+
* `type=inline`).
|
|
61
|
+
*/
|
|
62
|
+
raw?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Upload build caches to remote registries.
|
|
65
|
+
*/
|
|
66
|
+
registry?: outputs.CacheFromRegistry;
|
|
67
|
+
/**
|
|
68
|
+
* Upload build caches to AWS S3 or an S3-compatible services such as
|
|
69
|
+
* MinIO.
|
|
70
|
+
*/
|
|
71
|
+
s3?: outputs.CacheFromS3;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* cacheFromProvideDefaults sets the appropriate defaults for CacheFrom
|
|
75
|
+
*/
|
|
76
|
+
export declare function cacheFromProvideDefaults(val: CacheFrom): CacheFrom;
|
|
77
|
+
export interface CacheFromAzureBlob {
|
|
78
|
+
/**
|
|
79
|
+
* Base URL of the storage account.
|
|
80
|
+
*/
|
|
81
|
+
accountUrl?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The name of the cache image.
|
|
84
|
+
*/
|
|
85
|
+
name: string;
|
|
86
|
+
/**
|
|
87
|
+
* Blob storage account key.
|
|
88
|
+
*/
|
|
89
|
+
secretAccessKey?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface CacheFromGitHubActions {
|
|
92
|
+
/**
|
|
93
|
+
* The scope to use for cache keys. Defaults to `buildkit`.
|
|
94
|
+
*
|
|
95
|
+
* This should be set if building and caching multiple images in one
|
|
96
|
+
* workflow, otherwise caches will overwrite each other.
|
|
97
|
+
*/
|
|
98
|
+
scope?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The GitHub Actions token to use. This is not a personal access tokens
|
|
101
|
+
* and is typically generated automatically as part of each job.
|
|
102
|
+
*
|
|
103
|
+
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
104
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
105
|
+
* environment variable to your jobs.
|
|
106
|
+
*/
|
|
107
|
+
token?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The cache server URL to use for artifacts.
|
|
110
|
+
*
|
|
111
|
+
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
112
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
113
|
+
* environment variable to your jobs.
|
|
114
|
+
*/
|
|
115
|
+
url?: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
|
119
|
+
*/
|
|
120
|
+
export declare function cacheFromGitHubActionsProvideDefaults(val: CacheFromGitHubActions): CacheFromGitHubActions;
|
|
121
|
+
export interface CacheFromLocal {
|
|
122
|
+
/**
|
|
123
|
+
* Digest of manifest to import.
|
|
124
|
+
*/
|
|
125
|
+
digest?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Path of the local directory where cache gets imported from.
|
|
128
|
+
*/
|
|
129
|
+
src: string;
|
|
130
|
+
}
|
|
131
|
+
export interface CacheFromRegistry {
|
|
132
|
+
/**
|
|
133
|
+
* Fully qualified name of the cache image to import.
|
|
134
|
+
*/
|
|
135
|
+
ref: string;
|
|
136
|
+
}
|
|
137
|
+
export interface CacheFromS3 {
|
|
138
|
+
/**
|
|
139
|
+
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
140
|
+
*/
|
|
141
|
+
accessKeyId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Prefix to prepend to blob filenames.
|
|
144
|
+
*/
|
|
145
|
+
blobsPrefix?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Name of the S3 bucket.
|
|
148
|
+
*/
|
|
149
|
+
bucket: string;
|
|
150
|
+
/**
|
|
151
|
+
* Endpoint of the S3 bucket.
|
|
152
|
+
*/
|
|
153
|
+
endpointUrl?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Prefix to prepend on manifest filenames.
|
|
156
|
+
*/
|
|
157
|
+
manifestsPrefix?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Name of the cache image.
|
|
160
|
+
*/
|
|
161
|
+
name?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
164
|
+
*/
|
|
165
|
+
region: string;
|
|
166
|
+
/**
|
|
167
|
+
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
168
|
+
*/
|
|
169
|
+
secretAccessKey?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Defaults to `$AWS_SESSION_TOKEN`.
|
|
172
|
+
*/
|
|
173
|
+
sessionToken?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Uses `bucket` in the URL instead of hostname when `true`.
|
|
176
|
+
*/
|
|
177
|
+
usePathStyle?: boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* cacheFromS3ProvideDefaults sets the appropriate defaults for CacheFromS3
|
|
181
|
+
*/
|
|
182
|
+
export declare function cacheFromS3ProvideDefaults(val: CacheFromS3): CacheFromS3;
|
|
183
|
+
export interface CacheTo {
|
|
184
|
+
/**
|
|
185
|
+
* Push cache to Azure's blob storage service.
|
|
186
|
+
*/
|
|
187
|
+
azblob?: outputs.CacheToAzureBlob;
|
|
188
|
+
/**
|
|
189
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
190
|
+
*/
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Recommended for use with GitHub Actions workflows.
|
|
194
|
+
*
|
|
195
|
+
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
196
|
+
* expose appropriate credentials to your GitHub workflow.
|
|
197
|
+
*/
|
|
198
|
+
gha?: outputs.CacheToGitHubActions;
|
|
199
|
+
/**
|
|
200
|
+
* The inline cache storage backend is the simplest implementation to get
|
|
201
|
+
* started with, but it does not handle multi-stage builds. Consider the
|
|
202
|
+
* `registry` cache backend instead.
|
|
203
|
+
*/
|
|
204
|
+
inline?: outputs.CacheToInline;
|
|
205
|
+
/**
|
|
206
|
+
* A simple backend which caches imagines on your local filesystem.
|
|
207
|
+
*/
|
|
208
|
+
local?: outputs.CacheToLocal;
|
|
209
|
+
/**
|
|
210
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
211
|
+
* `type=inline`)
|
|
212
|
+
*/
|
|
213
|
+
raw?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Push caches to remote registries. Incompatible with the `docker` build
|
|
216
|
+
* driver.
|
|
217
|
+
*/
|
|
218
|
+
registry?: outputs.CacheToRegistry;
|
|
219
|
+
/**
|
|
220
|
+
* Push cache to AWS S3 or S3-compatible services such as MinIO.
|
|
221
|
+
*/
|
|
222
|
+
s3?: outputs.CacheToS3;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* cacheToProvideDefaults sets the appropriate defaults for CacheTo
|
|
226
|
+
*/
|
|
227
|
+
export declare function cacheToProvideDefaults(val: CacheTo): CacheTo;
|
|
228
|
+
export interface CacheToAzureBlob {
|
|
229
|
+
/**
|
|
230
|
+
* Base URL of the storage account.
|
|
231
|
+
*/
|
|
232
|
+
accountUrl?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Ignore errors caused by failed cache exports.
|
|
235
|
+
*/
|
|
236
|
+
ignoreError?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* The cache mode to use. Defaults to `min`.
|
|
239
|
+
*/
|
|
240
|
+
mode?: enums.CacheMode;
|
|
241
|
+
/**
|
|
242
|
+
* The name of the cache image.
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
/**
|
|
246
|
+
* Blob storage account key.
|
|
247
|
+
*/
|
|
248
|
+
secretAccessKey?: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* cacheToAzureBlobProvideDefaults sets the appropriate defaults for CacheToAzureBlob
|
|
252
|
+
*/
|
|
253
|
+
export declare function cacheToAzureBlobProvideDefaults(val: CacheToAzureBlob): CacheToAzureBlob;
|
|
254
|
+
export interface CacheToGitHubActions {
|
|
255
|
+
/**
|
|
256
|
+
* Ignore errors caused by failed cache exports.
|
|
257
|
+
*/
|
|
258
|
+
ignoreError?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* The cache mode to use. Defaults to `min`.
|
|
261
|
+
*/
|
|
262
|
+
mode?: enums.CacheMode;
|
|
263
|
+
/**
|
|
264
|
+
* The scope to use for cache keys. Defaults to `buildkit`.
|
|
265
|
+
*
|
|
266
|
+
* This should be set if building and caching multiple images in one
|
|
267
|
+
* workflow, otherwise caches will overwrite each other.
|
|
268
|
+
*/
|
|
269
|
+
scope?: string;
|
|
270
|
+
/**
|
|
271
|
+
* The GitHub Actions token to use. This is not a personal access tokens
|
|
272
|
+
* and is typically generated automatically as part of each job.
|
|
273
|
+
*
|
|
274
|
+
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
275
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
276
|
+
* environment variable to your jobs.
|
|
277
|
+
*/
|
|
278
|
+
token?: string;
|
|
279
|
+
/**
|
|
280
|
+
* The cache server URL to use for artifacts.
|
|
281
|
+
*
|
|
282
|
+
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
283
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
284
|
+
* environment variable to your jobs.
|
|
285
|
+
*/
|
|
286
|
+
url?: string;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
|
290
|
+
*/
|
|
291
|
+
export declare function cacheToGitHubActionsProvideDefaults(val: CacheToGitHubActions): CacheToGitHubActions;
|
|
292
|
+
/**
|
|
293
|
+
* Include an inline cache with the exported image.
|
|
294
|
+
*/
|
|
295
|
+
export interface CacheToInline {
|
|
296
|
+
}
|
|
297
|
+
export interface CacheToLocal {
|
|
298
|
+
/**
|
|
299
|
+
* The compression type to use.
|
|
300
|
+
*/
|
|
301
|
+
compression?: enums.CompressionType;
|
|
302
|
+
/**
|
|
303
|
+
* Compression level from 0 to 22.
|
|
304
|
+
*/
|
|
305
|
+
compressionLevel?: number;
|
|
306
|
+
/**
|
|
307
|
+
* Path of the local directory to export the cache.
|
|
308
|
+
*/
|
|
309
|
+
dest: string;
|
|
310
|
+
/**
|
|
311
|
+
* Forcefully apply compression.
|
|
312
|
+
*/
|
|
313
|
+
forceCompression?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Ignore errors caused by failed cache exports.
|
|
316
|
+
*/
|
|
317
|
+
ignoreError?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* The cache mode to use. Defaults to `min`.
|
|
320
|
+
*/
|
|
321
|
+
mode?: enums.CacheMode;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* cacheToLocalProvideDefaults sets the appropriate defaults for CacheToLocal
|
|
325
|
+
*/
|
|
326
|
+
export declare function cacheToLocalProvideDefaults(val: CacheToLocal): CacheToLocal;
|
|
327
|
+
export interface CacheToRegistry {
|
|
328
|
+
/**
|
|
329
|
+
* The compression type to use.
|
|
330
|
+
*/
|
|
331
|
+
compression?: enums.CompressionType;
|
|
332
|
+
/**
|
|
333
|
+
* Compression level from 0 to 22.
|
|
334
|
+
*/
|
|
335
|
+
compressionLevel?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Forcefully apply compression.
|
|
338
|
+
*/
|
|
339
|
+
forceCompression?: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Ignore errors caused by failed cache exports.
|
|
342
|
+
*/
|
|
343
|
+
ignoreError?: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Export cache manifest as an OCI-compatible image manifest instead of a
|
|
346
|
+
* manifest list. Requires `ociMediaTypes` to also be `true`.
|
|
347
|
+
*
|
|
348
|
+
* Some registries like AWS ECR will not work with caching if this is
|
|
349
|
+
* `false`.
|
|
350
|
+
*
|
|
351
|
+
* Defaults to `false` to match Docker's default behavior.
|
|
352
|
+
*/
|
|
353
|
+
imageManifest?: boolean;
|
|
354
|
+
/**
|
|
355
|
+
* The cache mode to use. Defaults to `min`.
|
|
356
|
+
*/
|
|
357
|
+
mode?: enums.CacheMode;
|
|
358
|
+
/**
|
|
359
|
+
* Whether to use OCI media types in exported manifests. Defaults to
|
|
360
|
+
* `true`.
|
|
361
|
+
*/
|
|
362
|
+
ociMediaTypes?: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Fully qualified name of the cache image to import.
|
|
365
|
+
*/
|
|
366
|
+
ref: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* cacheToRegistryProvideDefaults sets the appropriate defaults for CacheToRegistry
|
|
370
|
+
*/
|
|
371
|
+
export declare function cacheToRegistryProvideDefaults(val: CacheToRegistry): CacheToRegistry;
|
|
372
|
+
export interface CacheToS3 {
|
|
373
|
+
/**
|
|
374
|
+
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
375
|
+
*/
|
|
376
|
+
accessKeyId?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Prefix to prepend to blob filenames.
|
|
379
|
+
*/
|
|
380
|
+
blobsPrefix?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Name of the S3 bucket.
|
|
383
|
+
*/
|
|
384
|
+
bucket: string;
|
|
385
|
+
/**
|
|
386
|
+
* Endpoint of the S3 bucket.
|
|
387
|
+
*/
|
|
388
|
+
endpointUrl?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Ignore errors caused by failed cache exports.
|
|
391
|
+
*/
|
|
392
|
+
ignoreError?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Prefix to prepend on manifest filenames.
|
|
395
|
+
*/
|
|
396
|
+
manifestsPrefix?: string;
|
|
397
|
+
/**
|
|
398
|
+
* The cache mode to use. Defaults to `min`.
|
|
399
|
+
*/
|
|
400
|
+
mode?: enums.CacheMode;
|
|
401
|
+
/**
|
|
402
|
+
* Name of the cache image.
|
|
403
|
+
*/
|
|
404
|
+
name?: string;
|
|
405
|
+
/**
|
|
406
|
+
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
407
|
+
*/
|
|
408
|
+
region: string;
|
|
409
|
+
/**
|
|
410
|
+
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
411
|
+
*/
|
|
412
|
+
secretAccessKey?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Defaults to `$AWS_SESSION_TOKEN`.
|
|
415
|
+
*/
|
|
416
|
+
sessionToken?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Uses `bucket` in the URL instead of hostname when `true`.
|
|
419
|
+
*/
|
|
420
|
+
usePathStyle?: boolean;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* cacheToS3ProvideDefaults sets the appropriate defaults for CacheToS3
|
|
424
|
+
*/
|
|
425
|
+
export declare function cacheToS3ProvideDefaults(val: CacheToS3): CacheToS3;
|
|
426
|
+
export interface Context {
|
|
427
|
+
/**
|
|
428
|
+
* Resources to use for build context.
|
|
429
|
+
*
|
|
430
|
+
* The location can be:
|
|
431
|
+
* * A relative or absolute path to a local directory (`.`, `./app`,
|
|
432
|
+
* `/app`, etc.).
|
|
433
|
+
* * A remote URL of a Git repository, tarball, or plain text file
|
|
434
|
+
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
435
|
+
* etc.).
|
|
436
|
+
*/
|
|
437
|
+
location: string;
|
|
438
|
+
}
|
|
439
|
+
export interface Dockerfile {
|
|
440
|
+
/**
|
|
441
|
+
* Raw Dockerfile contents.
|
|
442
|
+
*
|
|
443
|
+
* Conflicts with `location`.
|
|
444
|
+
*
|
|
445
|
+
* Equivalent to invoking Docker with `-f -`.
|
|
446
|
+
*/
|
|
447
|
+
inline?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Location of the Dockerfile to use.
|
|
450
|
+
*
|
|
451
|
+
* Can be a relative or absolute path to a local file, or a remote URL.
|
|
452
|
+
*
|
|
453
|
+
* Defaults to `${context.location}/Dockerfile` if context is on-disk.
|
|
454
|
+
*
|
|
455
|
+
* Conflicts with `inline`.
|
|
456
|
+
*/
|
|
457
|
+
location?: string;
|
|
458
|
+
}
|
|
459
|
+
export interface Export {
|
|
460
|
+
/**
|
|
461
|
+
* A no-op export. Helpful for silencing the 'no exports' warning if you
|
|
462
|
+
* just want to populate caches.
|
|
463
|
+
*/
|
|
464
|
+
cacheonly?: outputs.ExportCacheOnly;
|
|
465
|
+
/**
|
|
466
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
467
|
+
*/
|
|
468
|
+
disabled?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* Export as a Docker image layout.
|
|
471
|
+
*/
|
|
472
|
+
docker?: outputs.ExportDocker;
|
|
473
|
+
/**
|
|
474
|
+
* Outputs the build result into a container image format.
|
|
475
|
+
*/
|
|
476
|
+
image?: outputs.ExportImage;
|
|
477
|
+
/**
|
|
478
|
+
* Export to a local directory as files and directories.
|
|
479
|
+
*/
|
|
480
|
+
local?: outputs.ExportLocal;
|
|
481
|
+
/**
|
|
482
|
+
* Identical to the Docker exporter but uses OCI media types by default.
|
|
483
|
+
*/
|
|
484
|
+
oci?: outputs.ExportOCI;
|
|
485
|
+
/**
|
|
486
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
487
|
+
* `type=docker`)
|
|
488
|
+
*/
|
|
489
|
+
raw?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Identical to the Image exporter, but pushes by default.
|
|
492
|
+
*/
|
|
493
|
+
registry?: outputs.ExportRegistry;
|
|
494
|
+
/**
|
|
495
|
+
* Export to a local directory as a tarball.
|
|
496
|
+
*/
|
|
497
|
+
tar?: outputs.ExportTar;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* exportProvideDefaults sets the appropriate defaults for Export
|
|
501
|
+
*/
|
|
502
|
+
export declare function exportProvideDefaults(val: Export): Export;
|
|
503
|
+
export interface ExportCacheOnly {
|
|
504
|
+
}
|
|
505
|
+
export interface ExportDocker {
|
|
506
|
+
/**
|
|
507
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
508
|
+
*/
|
|
509
|
+
annotations?: {
|
|
510
|
+
[key: string]: string;
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* The compression type to use.
|
|
514
|
+
*/
|
|
515
|
+
compression?: enums.CompressionType;
|
|
516
|
+
/**
|
|
517
|
+
* Compression level from 0 to 22.
|
|
518
|
+
*/
|
|
519
|
+
compressionLevel?: number;
|
|
520
|
+
/**
|
|
521
|
+
* The local export path.
|
|
522
|
+
*/
|
|
523
|
+
dest?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Forcefully apply compression.
|
|
526
|
+
*/
|
|
527
|
+
forceCompression?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
530
|
+
*/
|
|
531
|
+
names?: string[];
|
|
532
|
+
/**
|
|
533
|
+
* Use OCI media types in exporter manifests.
|
|
534
|
+
*/
|
|
535
|
+
ociMediaTypes?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Bundle the output into a tarball layout.
|
|
538
|
+
*/
|
|
539
|
+
tar?: boolean;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* exportDockerProvideDefaults sets the appropriate defaults for ExportDocker
|
|
543
|
+
*/
|
|
544
|
+
export declare function exportDockerProvideDefaults(val: ExportDocker): ExportDocker;
|
|
545
|
+
export interface ExportImage {
|
|
546
|
+
/**
|
|
547
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
548
|
+
*/
|
|
549
|
+
annotations?: {
|
|
550
|
+
[key: string]: string;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* The compression type to use.
|
|
554
|
+
*/
|
|
555
|
+
compression?: enums.CompressionType;
|
|
556
|
+
/**
|
|
557
|
+
* Compression level from 0 to 22.
|
|
558
|
+
*/
|
|
559
|
+
compressionLevel?: number;
|
|
560
|
+
/**
|
|
561
|
+
* Name image with `prefix@<digest>`, used for anonymous images.
|
|
562
|
+
*/
|
|
563
|
+
danglingNamePrefix?: string;
|
|
564
|
+
/**
|
|
565
|
+
* Forcefully apply compression.
|
|
566
|
+
*/
|
|
567
|
+
forceCompression?: boolean;
|
|
568
|
+
/**
|
|
569
|
+
* Allow pushing to an insecure registry.
|
|
570
|
+
*/
|
|
571
|
+
insecure?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Add additional canonical name (`name@<digest>`).
|
|
574
|
+
*/
|
|
575
|
+
nameCanonical?: boolean;
|
|
576
|
+
/**
|
|
577
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
578
|
+
*/
|
|
579
|
+
names?: string[];
|
|
580
|
+
/**
|
|
581
|
+
* Use OCI media types in exporter manifests.
|
|
582
|
+
*/
|
|
583
|
+
ociMediaTypes?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* Push after creating the image. Defaults to `false`.
|
|
586
|
+
*/
|
|
587
|
+
push?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Push image without name.
|
|
590
|
+
*/
|
|
591
|
+
pushByDigest?: boolean;
|
|
592
|
+
/**
|
|
593
|
+
* Store resulting images to the worker's image store and ensure all of
|
|
594
|
+
* its blobs are in the content store.
|
|
595
|
+
*
|
|
596
|
+
* Defaults to `true`.
|
|
597
|
+
*
|
|
598
|
+
* Ignored if the worker doesn't have image store (when using OCI workers,
|
|
599
|
+
* for example).
|
|
600
|
+
*/
|
|
601
|
+
store?: boolean;
|
|
602
|
+
/**
|
|
603
|
+
* Unpack image after creation (for use with containerd). Defaults to
|
|
604
|
+
* `false`.
|
|
605
|
+
*/
|
|
606
|
+
unpack?: boolean;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* exportImageProvideDefaults sets the appropriate defaults for ExportImage
|
|
610
|
+
*/
|
|
611
|
+
export declare function exportImageProvideDefaults(val: ExportImage): ExportImage;
|
|
612
|
+
export interface ExportLocal {
|
|
613
|
+
/**
|
|
614
|
+
* Output path.
|
|
615
|
+
*/
|
|
616
|
+
dest: string;
|
|
617
|
+
}
|
|
618
|
+
export interface ExportOCI {
|
|
619
|
+
/**
|
|
620
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
621
|
+
*/
|
|
622
|
+
annotations?: {
|
|
623
|
+
[key: string]: string;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* The compression type to use.
|
|
627
|
+
*/
|
|
628
|
+
compression?: enums.CompressionType;
|
|
629
|
+
/**
|
|
630
|
+
* Compression level from 0 to 22.
|
|
631
|
+
*/
|
|
632
|
+
compressionLevel?: number;
|
|
633
|
+
/**
|
|
634
|
+
* The local export path.
|
|
635
|
+
*/
|
|
636
|
+
dest?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Forcefully apply compression.
|
|
639
|
+
*/
|
|
640
|
+
forceCompression?: boolean;
|
|
641
|
+
/**
|
|
642
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
643
|
+
*/
|
|
644
|
+
names?: string[];
|
|
645
|
+
/**
|
|
646
|
+
* Use OCI media types in exporter manifests.
|
|
647
|
+
*/
|
|
648
|
+
ociMediaTypes?: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Bundle the output into a tarball layout.
|
|
651
|
+
*/
|
|
652
|
+
tar?: boolean;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* exportOCIProvideDefaults sets the appropriate defaults for ExportOCI
|
|
656
|
+
*/
|
|
657
|
+
export declare function exportOCIProvideDefaults(val: ExportOCI): ExportOCI;
|
|
658
|
+
export interface ExportRegistry {
|
|
659
|
+
/**
|
|
660
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
661
|
+
*/
|
|
662
|
+
annotations?: {
|
|
663
|
+
[key: string]: string;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* The compression type to use.
|
|
667
|
+
*/
|
|
668
|
+
compression?: enums.CompressionType;
|
|
669
|
+
/**
|
|
670
|
+
* Compression level from 0 to 22.
|
|
671
|
+
*/
|
|
672
|
+
compressionLevel?: number;
|
|
673
|
+
/**
|
|
674
|
+
* Name image with `prefix@<digest>`, used for anonymous images.
|
|
675
|
+
*/
|
|
676
|
+
danglingNamePrefix?: string;
|
|
677
|
+
/**
|
|
678
|
+
* Forcefully apply compression.
|
|
679
|
+
*/
|
|
680
|
+
forceCompression?: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* Allow pushing to an insecure registry.
|
|
683
|
+
*/
|
|
684
|
+
insecure?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* Add additional canonical name (`name@<digest>`).
|
|
687
|
+
*/
|
|
688
|
+
nameCanonical?: boolean;
|
|
689
|
+
/**
|
|
690
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
691
|
+
*/
|
|
692
|
+
names?: string[];
|
|
693
|
+
/**
|
|
694
|
+
* Use OCI media types in exporter manifests.
|
|
695
|
+
*/
|
|
696
|
+
ociMediaTypes?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Push after creating the image. Defaults to `true`.
|
|
699
|
+
*/
|
|
700
|
+
push?: boolean;
|
|
701
|
+
/**
|
|
702
|
+
* Push image without name.
|
|
703
|
+
*/
|
|
704
|
+
pushByDigest?: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Store resulting images to the worker's image store and ensure all of
|
|
707
|
+
* its blobs are in the content store.
|
|
708
|
+
*
|
|
709
|
+
* Defaults to `true`.
|
|
710
|
+
*
|
|
711
|
+
* Ignored if the worker doesn't have image store (when using OCI workers,
|
|
712
|
+
* for example).
|
|
713
|
+
*/
|
|
714
|
+
store?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* Unpack image after creation (for use with containerd). Defaults to
|
|
717
|
+
* `false`.
|
|
718
|
+
*/
|
|
719
|
+
unpack?: boolean;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* exportRegistryProvideDefaults sets the appropriate defaults for ExportRegistry
|
|
723
|
+
*/
|
|
724
|
+
export declare function exportRegistryProvideDefaults(val: ExportRegistry): ExportRegistry;
|
|
725
|
+
export interface ExportTar {
|
|
726
|
+
/**
|
|
727
|
+
* Output path.
|
|
728
|
+
*/
|
|
729
|
+
dest: string;
|
|
730
|
+
}
|
|
731
|
+
export interface Registry {
|
|
732
|
+
/**
|
|
733
|
+
* The registry's address (e.g. "docker.io").
|
|
734
|
+
*/
|
|
735
|
+
address: string;
|
|
736
|
+
/**
|
|
737
|
+
* Password or token for the registry.
|
|
738
|
+
*/
|
|
739
|
+
password?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Username for the registry.
|
|
742
|
+
*/
|
|
743
|
+
username?: string;
|
|
744
|
+
}
|
|
745
|
+
export interface SSH {
|
|
746
|
+
/**
|
|
747
|
+
* Useful for distinguishing different servers that are part of the same
|
|
748
|
+
* build.
|
|
749
|
+
*
|
|
750
|
+
* A value of `default` is appropriate if only dealing with a single host.
|
|
751
|
+
*/
|
|
752
|
+
id: string;
|
|
753
|
+
/**
|
|
754
|
+
* SSH agent socket or private keys to expose to the build under the given
|
|
755
|
+
* identifier.
|
|
756
|
+
*
|
|
757
|
+
* Defaults to `[$SSH_AUTH_SOCK]`.
|
|
758
|
+
*
|
|
759
|
+
* Note that your keys are **not** automatically added when using an
|
|
760
|
+
* agent. Run `ssh-add -l` locally to confirm which public keys are
|
|
761
|
+
* visible to the agent; these will be exposed to your build.
|
|
762
|
+
*/
|
|
763
|
+
paths?: string[];
|
|
764
|
+
}
|