@pulumi/docker 4.6.0-alpha.4 → 4.6.0-beta.2
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/buildx/image.d.ts +722 -56
- package/buildx/image.js +458 -8
- package/buildx/image.js.map +1 -1
- package/buildx/index.d.ts +1 -0
- package/buildx/index.js +16 -0
- package/buildx/index.js.map +1 -1
- package/config/vars.d.ts +8 -6
- package/config/vars.js.map +1 -1
- package/container.d.ts +23 -5
- package/container.js +23 -5
- package/container.js.map +1 -1
- package/image.d.ts +6 -1
- package/image.js +2 -0
- package/image.js.map +1 -1
- package/network.d.ts +25 -3
- package/network.js +25 -3
- package/network.js.map +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +1 -1
- package/plugin.js +1 -1
- package/provider.d.ts +14 -11
- package/provider.js +2 -2
- package/provider.js.map +1 -1
- package/secret.d.ts +3 -1
- package/secret.js +3 -1
- package/secret.js.map +1 -1
- package/service.d.ts +36 -9
- package/service.js +30 -3
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +24 -4
- package/serviceConfig.js +24 -4
- package/serviceConfig.js.map +1 -1
- package/types/enums/buildx/index.d.ts +72 -0
- package/types/enums/buildx/index.js +74 -0
- package/types/enums/buildx/index.js.map +1 -0
- package/types/enums/index.d.ts +2 -0
- package/types/enums/index.js +4 -1
- package/types/enums/index.js.map +1 -1
- package/types/input.d.ts +801 -16
- package/types/input.js +116 -0
- package/types/input.js.map +1 -1
- package/types/output.d.ts +801 -24
- package/types/output.js +115 -0
- package/types/output.js.map +1 -1
- package/volume.d.ts +25 -3
- package/volume.js +25 -3
- package/volume.js.map +1 -1
package/types/input.d.ts
CHANGED
|
@@ -153,13 +153,37 @@ export interface ContainerMountVolumeOptionsLabel {
|
|
|
153
153
|
value: pulumi.Input<string>;
|
|
154
154
|
}
|
|
155
155
|
export interface ContainerNetworkData {
|
|
156
|
+
/**
|
|
157
|
+
* The network gateway of the container.
|
|
158
|
+
*/
|
|
156
159
|
gateway?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The IPV6 address of the container.
|
|
162
|
+
*/
|
|
157
163
|
globalIpv6Address?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The IPV6 prefix length address of the container.
|
|
166
|
+
*/
|
|
158
167
|
globalIpv6PrefixLength?: pulumi.Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* The IP address of the container.
|
|
170
|
+
*/
|
|
159
171
|
ipAddress?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The IP prefix length of the container.
|
|
174
|
+
*/
|
|
160
175
|
ipPrefixLength?: pulumi.Input<number>;
|
|
176
|
+
/**
|
|
177
|
+
* The IPV6 gateway of the container.
|
|
178
|
+
*/
|
|
161
179
|
ipv6Gateway?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The MAC address of the container.
|
|
182
|
+
*/
|
|
162
183
|
macAddress?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The name of the network
|
|
186
|
+
*/
|
|
163
187
|
networkName?: pulumi.Input<string>;
|
|
164
188
|
}
|
|
165
189
|
export interface ContainerNetworksAdvanced {
|
|
@@ -217,6 +241,9 @@ export interface ContainerUpload {
|
|
|
217
241
|
* Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source`
|
|
218
242
|
*/
|
|
219
243
|
content?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
|
|
246
|
+
*/
|
|
220
247
|
contentBase64?: pulumi.Input<string>;
|
|
221
248
|
/**
|
|
222
249
|
* If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
@@ -261,6 +288,10 @@ export interface ContainerVolume {
|
|
|
261
288
|
* The Docker build context
|
|
262
289
|
*/
|
|
263
290
|
export interface DockerBuild {
|
|
291
|
+
/**
|
|
292
|
+
* Custom host-to-IP mappings to use while building (format: "host:ip")
|
|
293
|
+
*/
|
|
294
|
+
addHosts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
264
295
|
/**
|
|
265
296
|
* An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass build-time variables that can be accessed like environment variables inside the RUN instruction.
|
|
266
297
|
*/
|
|
@@ -283,6 +314,10 @@ export interface DockerBuild {
|
|
|
283
314
|
* The path to the Dockerfile to use.
|
|
284
315
|
*/
|
|
285
316
|
dockerfile?: pulumi.Input<string>;
|
|
317
|
+
/**
|
|
318
|
+
* Set the networking mode for RUN instructions
|
|
319
|
+
*/
|
|
320
|
+
network?: pulumi.Input<string>;
|
|
286
321
|
/**
|
|
287
322
|
* The architecture of the platform you want to build this image for, e.g. `linux/arm64`.
|
|
288
323
|
*/
|
|
@@ -333,11 +368,26 @@ export interface PluginGrantPermission {
|
|
|
333
368
|
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
334
369
|
}
|
|
335
370
|
export interface ProviderRegistryAuth {
|
|
371
|
+
/**
|
|
372
|
+
* Address of the registry.
|
|
373
|
+
*/
|
|
336
374
|
address: pulumi.Input<string>;
|
|
337
375
|
authDisabled?: pulumi.Input<boolean>;
|
|
376
|
+
/**
|
|
377
|
+
* Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options.
|
|
378
|
+
*/
|
|
338
379
|
configFile?: pulumi.Input<string>;
|
|
380
|
+
/**
|
|
381
|
+
* Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password.
|
|
382
|
+
*/
|
|
339
383
|
configFileContent?: pulumi.Input<string>;
|
|
384
|
+
/**
|
|
385
|
+
* Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set.
|
|
386
|
+
*/
|
|
340
387
|
password?: pulumi.Input<string>;
|
|
388
|
+
/**
|
|
389
|
+
* Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set.
|
|
390
|
+
*/
|
|
341
391
|
username?: pulumi.Input<string>;
|
|
342
392
|
}
|
|
343
393
|
/**
|
|
@@ -771,7 +821,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
771
821
|
*/
|
|
772
822
|
privileges?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivileges>;
|
|
773
823
|
/**
|
|
774
|
-
*
|
|
824
|
+
* Mount the container's root filesystem as read only
|
|
775
825
|
*/
|
|
776
826
|
readOnly?: pulumi.Input<boolean>;
|
|
777
827
|
/**
|
|
@@ -793,7 +843,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
793
843
|
[key: string]: any;
|
|
794
844
|
}>;
|
|
795
845
|
/**
|
|
796
|
-
*
|
|
846
|
+
* The user inside the container
|
|
797
847
|
*/
|
|
798
848
|
user?: pulumi.Input<string>;
|
|
799
849
|
}
|
|
@@ -855,7 +905,7 @@ export interface ServiceTaskSpecContainerSpecHealthcheck {
|
|
|
855
905
|
*/
|
|
856
906
|
tests: pulumi.Input<pulumi.Input<string>[]>;
|
|
857
907
|
/**
|
|
858
|
-
*
|
|
908
|
+
* Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
859
909
|
*/
|
|
860
910
|
timeout?: pulumi.Input<string>;
|
|
861
911
|
}
|
|
@@ -917,7 +967,7 @@ export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
|
917
967
|
}
|
|
918
968
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
919
969
|
/**
|
|
920
|
-
* The mode
|
|
970
|
+
* The permission mode for the tmpfs mount in an integer
|
|
921
971
|
*/
|
|
922
972
|
mode?: pulumi.Input<number>;
|
|
923
973
|
/**
|
|
@@ -989,7 +1039,7 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
989
1039
|
*/
|
|
990
1040
|
role?: pulumi.Input<string>;
|
|
991
1041
|
/**
|
|
992
|
-
*
|
|
1042
|
+
* SELinux type label
|
|
993
1043
|
*/
|
|
994
1044
|
type?: pulumi.Input<string>;
|
|
995
1045
|
/**
|
|
@@ -999,11 +1049,11 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
999
1049
|
}
|
|
1000
1050
|
export interface ServiceTaskSpecContainerSpecSecret {
|
|
1001
1051
|
/**
|
|
1002
|
-
* Represents the file GID. Defaults to `0
|
|
1052
|
+
* Represents the file GID. Defaults to `0`
|
|
1003
1053
|
*/
|
|
1004
1054
|
fileGid?: pulumi.Input<string>;
|
|
1005
1055
|
/**
|
|
1006
|
-
* Represents represents the FileMode of the file. Defaults to `0o444
|
|
1056
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`
|
|
1007
1057
|
*/
|
|
1008
1058
|
fileMode?: pulumi.Input<number>;
|
|
1009
1059
|
/**
|
|
@@ -1011,7 +1061,7 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
1011
1061
|
*/
|
|
1012
1062
|
fileName: pulumi.Input<string>;
|
|
1013
1063
|
/**
|
|
1014
|
-
* Represents the file UID. Defaults to `0
|
|
1064
|
+
* Represents the file UID. Defaults to `0`
|
|
1015
1065
|
*/
|
|
1016
1066
|
fileUid?: pulumi.Input<string>;
|
|
1017
1067
|
/**
|
|
@@ -1025,11 +1075,11 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
1025
1075
|
}
|
|
1026
1076
|
export interface ServiceTaskSpecLogDriver {
|
|
1027
1077
|
/**
|
|
1028
|
-
*
|
|
1078
|
+
* The logging driver to use
|
|
1029
1079
|
*/
|
|
1030
1080
|
name: pulumi.Input<string>;
|
|
1031
1081
|
/**
|
|
1032
|
-
*
|
|
1082
|
+
* The options for the logging driver
|
|
1033
1083
|
*/
|
|
1034
1084
|
options?: pulumi.Input<{
|
|
1035
1085
|
[key: string]: pulumi.Input<string>;
|
|
@@ -1045,7 +1095,7 @@ export interface ServiceTaskSpecNetworksAdvanced {
|
|
|
1045
1095
|
*/
|
|
1046
1096
|
driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1047
1097
|
/**
|
|
1048
|
-
*
|
|
1098
|
+
* The name/id of the network.
|
|
1049
1099
|
*/
|
|
1050
1100
|
name: pulumi.Input<string>;
|
|
1051
1101
|
}
|
|
@@ -1107,7 +1157,7 @@ export interface ServiceTaskSpecResourcesReservation {
|
|
|
1107
1157
|
*/
|
|
1108
1158
|
memoryBytes?: pulumi.Input<number>;
|
|
1109
1159
|
/**
|
|
1110
|
-
* CPU shares in units of
|
|
1160
|
+
* CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
|
|
1111
1161
|
*/
|
|
1112
1162
|
nanoCpus?: pulumi.Input<number>;
|
|
1113
1163
|
}
|
|
@@ -1127,7 +1177,7 @@ export interface ServiceTaskSpecRestartPolicy {
|
|
|
1127
1177
|
*/
|
|
1128
1178
|
condition?: pulumi.Input<string>;
|
|
1129
1179
|
/**
|
|
1130
|
-
*
|
|
1180
|
+
* Delay between restart attempts (ms|s|m|h)
|
|
1131
1181
|
*/
|
|
1132
1182
|
delay?: pulumi.Input<string>;
|
|
1133
1183
|
/**
|
|
@@ -1176,20 +1226,755 @@ export interface VolumeLabel {
|
|
|
1176
1226
|
value: pulumi.Input<string>;
|
|
1177
1227
|
}
|
|
1178
1228
|
export declare namespace buildx {
|
|
1229
|
+
interface BuildContext {
|
|
1230
|
+
/**
|
|
1231
|
+
* Resources to use for build context.
|
|
1232
|
+
*
|
|
1233
|
+
* The location can be:
|
|
1234
|
+
* * A relative or absolute path to a local directory (`.`, `./app`,
|
|
1235
|
+
* `/app`, etc.).
|
|
1236
|
+
* * A remote URL of a Git repository, tarball, or plain text file
|
|
1237
|
+
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
1238
|
+
* etc.).
|
|
1239
|
+
*/
|
|
1240
|
+
location: pulumi.Input<string>;
|
|
1241
|
+
/**
|
|
1242
|
+
* Additional build contexts to use.
|
|
1243
|
+
*
|
|
1244
|
+
* These contexts are accessed with `FROM name` or `--from=name`
|
|
1245
|
+
* statements when using Dockerfile 1.4+ syntax.
|
|
1246
|
+
*
|
|
1247
|
+
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
|
1248
|
+
*/
|
|
1249
|
+
named?: pulumi.Input<{
|
|
1250
|
+
[key: string]: pulumi.Input<inputs.buildx.Context>;
|
|
1251
|
+
}>;
|
|
1252
|
+
}
|
|
1253
|
+
interface BuilderConfig {
|
|
1254
|
+
/**
|
|
1255
|
+
* Name of an existing buildx builder to use.
|
|
1256
|
+
*
|
|
1257
|
+
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
|
1258
|
+
* supported. The legacy `docker` driver is not supported.
|
|
1259
|
+
*
|
|
1260
|
+
* Equivalent to Docker's `--builder` flag.
|
|
1261
|
+
*/
|
|
1262
|
+
name?: pulumi.Input<string>;
|
|
1263
|
+
}
|
|
1264
|
+
interface CacheFromAzureBlob {
|
|
1265
|
+
/**
|
|
1266
|
+
* Base URL of the storage account.
|
|
1267
|
+
*/
|
|
1268
|
+
accountUrl?: pulumi.Input<string>;
|
|
1269
|
+
/**
|
|
1270
|
+
* The name of the cache image.
|
|
1271
|
+
*/
|
|
1272
|
+
name: pulumi.Input<string>;
|
|
1273
|
+
/**
|
|
1274
|
+
* Blob storage account key.
|
|
1275
|
+
*/
|
|
1276
|
+
secretAccessKey?: pulumi.Input<string>;
|
|
1277
|
+
}
|
|
1278
|
+
interface CacheFromEntry {
|
|
1279
|
+
/**
|
|
1280
|
+
* Upload build caches to Azure's blob storage service.
|
|
1281
|
+
*/
|
|
1282
|
+
azblob?: pulumi.Input<inputs.buildx.CacheFromAzureBlob>;
|
|
1283
|
+
/**
|
|
1284
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
1285
|
+
*/
|
|
1286
|
+
disabled?: pulumi.Input<boolean>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Recommended for use with GitHub Actions workflows.
|
|
1289
|
+
*
|
|
1290
|
+
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
1291
|
+
* expose appropriate credentials to your GitHub workflow.
|
|
1292
|
+
*/
|
|
1293
|
+
gha?: pulumi.Input<inputs.buildx.CacheFromGitHubActions>;
|
|
1294
|
+
/**
|
|
1295
|
+
* A simple backend which caches images on your local filesystem.
|
|
1296
|
+
*/
|
|
1297
|
+
local?: pulumi.Input<inputs.buildx.CacheFromLocal>;
|
|
1298
|
+
/**
|
|
1299
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
1300
|
+
* `type=inline`).
|
|
1301
|
+
*/
|
|
1302
|
+
raw?: pulumi.Input<string>;
|
|
1303
|
+
/**
|
|
1304
|
+
* Upload build caches to remote registries.
|
|
1305
|
+
*/
|
|
1306
|
+
registry?: pulumi.Input<inputs.buildx.CacheFromRegistry>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Upload build caches to AWS S3 or an S3-compatible services such as
|
|
1309
|
+
* MinIO.
|
|
1310
|
+
*/
|
|
1311
|
+
s3?: pulumi.Input<inputs.buildx.CacheFromS3>;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* cacheFromEntryProvideDefaults sets the appropriate defaults for CacheFromEntry
|
|
1315
|
+
*/
|
|
1316
|
+
function cacheFromEntryProvideDefaults(val: CacheFromEntry): CacheFromEntry;
|
|
1317
|
+
interface CacheFromGitHubActions {
|
|
1318
|
+
/**
|
|
1319
|
+
* The scope to use for cache keys. Defaults to `buildkit`.
|
|
1320
|
+
*
|
|
1321
|
+
* This should be set if building and caching multiple images in one
|
|
1322
|
+
* workflow, otherwise caches will overwrite each other.
|
|
1323
|
+
*/
|
|
1324
|
+
scope?: pulumi.Input<string>;
|
|
1325
|
+
/**
|
|
1326
|
+
* The GitHub Actions token to use. This is not a personal access tokens
|
|
1327
|
+
* and is typically generated automatically as part of each job.
|
|
1328
|
+
*
|
|
1329
|
+
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1330
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1331
|
+
* environment variable to your jobs.
|
|
1332
|
+
*/
|
|
1333
|
+
token?: pulumi.Input<string>;
|
|
1334
|
+
/**
|
|
1335
|
+
* The cache server URL to use for artifacts.
|
|
1336
|
+
*
|
|
1337
|
+
* Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
|
1338
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1339
|
+
* environment variable to your jobs.
|
|
1340
|
+
*/
|
|
1341
|
+
url?: pulumi.Input<string>;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
|
1345
|
+
*/
|
|
1346
|
+
function cacheFromGitHubActionsProvideDefaults(val: CacheFromGitHubActions): CacheFromGitHubActions;
|
|
1347
|
+
interface CacheFromLocal {
|
|
1348
|
+
/**
|
|
1349
|
+
* Digest of manifest to import.
|
|
1350
|
+
*/
|
|
1351
|
+
digest?: pulumi.Input<string>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Path of the local directory where cache gets imported from.
|
|
1354
|
+
*/
|
|
1355
|
+
src: pulumi.Input<string>;
|
|
1356
|
+
}
|
|
1357
|
+
interface CacheFromRegistry {
|
|
1358
|
+
/**
|
|
1359
|
+
* Fully qualified name of the cache image to import.
|
|
1360
|
+
*/
|
|
1361
|
+
ref: pulumi.Input<string>;
|
|
1362
|
+
}
|
|
1363
|
+
interface CacheFromS3 {
|
|
1364
|
+
/**
|
|
1365
|
+
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
1366
|
+
*/
|
|
1367
|
+
accessKeyId?: pulumi.Input<string>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Prefix to prepend to blob filenames.
|
|
1370
|
+
*/
|
|
1371
|
+
blobsPrefix?: pulumi.Input<string>;
|
|
1372
|
+
/**
|
|
1373
|
+
* Name of the S3 bucket.
|
|
1374
|
+
*/
|
|
1375
|
+
bucket: pulumi.Input<string>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Endpoint of the S3 bucket.
|
|
1378
|
+
*/
|
|
1379
|
+
endpointUrl?: pulumi.Input<string>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Prefix to prepend on manifest filenames.
|
|
1382
|
+
*/
|
|
1383
|
+
manifestsPrefix?: pulumi.Input<string>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Name of the cache image.
|
|
1386
|
+
*/
|
|
1387
|
+
name?: pulumi.Input<string>;
|
|
1388
|
+
/**
|
|
1389
|
+
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
1390
|
+
*/
|
|
1391
|
+
region: pulumi.Input<string>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
1394
|
+
*/
|
|
1395
|
+
secretAccessKey?: pulumi.Input<string>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Defaults to `$AWS_SESSION_TOKEN`.
|
|
1398
|
+
*/
|
|
1399
|
+
sessionToken?: pulumi.Input<string>;
|
|
1400
|
+
/**
|
|
1401
|
+
* Uses `bucket` in the URL instead of hostname when `true`.
|
|
1402
|
+
*/
|
|
1403
|
+
usePathStyle?: pulumi.Input<boolean>;
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* cacheFromS3ProvideDefaults sets the appropriate defaults for CacheFromS3
|
|
1407
|
+
*/
|
|
1408
|
+
function cacheFromS3ProvideDefaults(val: CacheFromS3): CacheFromS3;
|
|
1409
|
+
interface CacheToAzureBlob {
|
|
1410
|
+
/**
|
|
1411
|
+
* Base URL of the storage account.
|
|
1412
|
+
*/
|
|
1413
|
+
accountUrl?: pulumi.Input<string>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Ignore errors caused by failed cache exports.
|
|
1416
|
+
*/
|
|
1417
|
+
ignoreError?: pulumi.Input<boolean>;
|
|
1418
|
+
/**
|
|
1419
|
+
* The cache mode to use. Defaults to `min`.
|
|
1420
|
+
*/
|
|
1421
|
+
mode?: pulumi.Input<enums.buildx.CacheMode>;
|
|
1422
|
+
/**
|
|
1423
|
+
* The name of the cache image.
|
|
1424
|
+
*/
|
|
1425
|
+
name: pulumi.Input<string>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Blob storage account key.
|
|
1428
|
+
*/
|
|
1429
|
+
secretAccessKey?: pulumi.Input<string>;
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* cacheToAzureBlobProvideDefaults sets the appropriate defaults for CacheToAzureBlob
|
|
1433
|
+
*/
|
|
1434
|
+
function cacheToAzureBlobProvideDefaults(val: CacheToAzureBlob): CacheToAzureBlob;
|
|
1435
|
+
interface CacheToEntry {
|
|
1436
|
+
/**
|
|
1437
|
+
* Push cache to Azure's blob storage service.
|
|
1438
|
+
*/
|
|
1439
|
+
azblob?: pulumi.Input<inputs.buildx.CacheToAzureBlob>;
|
|
1440
|
+
/**
|
|
1441
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
1442
|
+
*/
|
|
1443
|
+
disabled?: pulumi.Input<boolean>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Recommended for use with GitHub Actions workflows.
|
|
1446
|
+
*
|
|
1447
|
+
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
1448
|
+
* expose appropriate credentials to your GitHub workflow.
|
|
1449
|
+
*/
|
|
1450
|
+
gha?: pulumi.Input<inputs.buildx.CacheToGitHubActions>;
|
|
1451
|
+
/**
|
|
1452
|
+
* The inline cache storage backend is the simplest implementation to get
|
|
1453
|
+
* started with, but it does not handle multi-stage builds. Consider the
|
|
1454
|
+
* `registry` cache backend instead.
|
|
1455
|
+
*/
|
|
1456
|
+
inline?: pulumi.Input<inputs.buildx.CacheToInline>;
|
|
1457
|
+
/**
|
|
1458
|
+
* A simple backend which caches imagines on your local filesystem.
|
|
1459
|
+
*/
|
|
1460
|
+
local?: pulumi.Input<inputs.buildx.CacheToLocal>;
|
|
1461
|
+
/**
|
|
1462
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
1463
|
+
* `type=inline`)
|
|
1464
|
+
*/
|
|
1465
|
+
raw?: pulumi.Input<string>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Push caches to remote registries. Incompatible with the `docker` build
|
|
1468
|
+
* driver.
|
|
1469
|
+
*/
|
|
1470
|
+
registry?: pulumi.Input<inputs.buildx.CacheToRegistry>;
|
|
1471
|
+
/**
|
|
1472
|
+
* Push cache to AWS S3 or S3-compatible services such as MinIO.
|
|
1473
|
+
*/
|
|
1474
|
+
s3?: pulumi.Input<inputs.buildx.CacheToS3>;
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* cacheToEntryProvideDefaults sets the appropriate defaults for CacheToEntry
|
|
1478
|
+
*/
|
|
1479
|
+
function cacheToEntryProvideDefaults(val: CacheToEntry): CacheToEntry;
|
|
1480
|
+
interface CacheToGitHubActions {
|
|
1481
|
+
/**
|
|
1482
|
+
* Ignore errors caused by failed cache exports.
|
|
1483
|
+
*/
|
|
1484
|
+
ignoreError?: pulumi.Input<boolean>;
|
|
1485
|
+
/**
|
|
1486
|
+
* The cache mode to use. Defaults to `min`.
|
|
1487
|
+
*/
|
|
1488
|
+
mode?: pulumi.Input<enums.buildx.CacheMode>;
|
|
1489
|
+
/**
|
|
1490
|
+
* The scope to use for cache keys. Defaults to `buildkit`.
|
|
1491
|
+
*
|
|
1492
|
+
* This should be set if building and caching multiple images in one
|
|
1493
|
+
* workflow, otherwise caches will overwrite each other.
|
|
1494
|
+
*/
|
|
1495
|
+
scope?: pulumi.Input<string>;
|
|
1496
|
+
/**
|
|
1497
|
+
* The GitHub Actions token to use. This is not a personal access tokens
|
|
1498
|
+
* and is typically generated automatically as part of each job.
|
|
1499
|
+
*
|
|
1500
|
+
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1501
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1502
|
+
* environment variable to your jobs.
|
|
1503
|
+
*/
|
|
1504
|
+
token?: pulumi.Input<string>;
|
|
1505
|
+
/**
|
|
1506
|
+
* The cache server URL to use for artifacts.
|
|
1507
|
+
*
|
|
1508
|
+
* Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
|
1509
|
+
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1510
|
+
* environment variable to your jobs.
|
|
1511
|
+
*/
|
|
1512
|
+
url?: pulumi.Input<string>;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
|
1516
|
+
*/
|
|
1517
|
+
function cacheToGitHubActionsProvideDefaults(val: CacheToGitHubActions): CacheToGitHubActions;
|
|
1518
|
+
interface CacheToInline {
|
|
1519
|
+
}
|
|
1520
|
+
interface CacheToLocal {
|
|
1521
|
+
/**
|
|
1522
|
+
* The compression type to use.
|
|
1523
|
+
*/
|
|
1524
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1525
|
+
/**
|
|
1526
|
+
* Compression level from 0 to 22.
|
|
1527
|
+
*/
|
|
1528
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1529
|
+
/**
|
|
1530
|
+
* Path of the local directory to export the cache.
|
|
1531
|
+
*/
|
|
1532
|
+
dest: pulumi.Input<string>;
|
|
1533
|
+
/**
|
|
1534
|
+
* Forcefully apply compression.
|
|
1535
|
+
*/
|
|
1536
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1537
|
+
/**
|
|
1538
|
+
* Ignore errors caused by failed cache exports.
|
|
1539
|
+
*/
|
|
1540
|
+
ignoreError?: pulumi.Input<boolean>;
|
|
1541
|
+
/**
|
|
1542
|
+
* The cache mode to use. Defaults to `min`.
|
|
1543
|
+
*/
|
|
1544
|
+
mode?: pulumi.Input<enums.buildx.CacheMode>;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* cacheToLocalProvideDefaults sets the appropriate defaults for CacheToLocal
|
|
1548
|
+
*/
|
|
1549
|
+
function cacheToLocalProvideDefaults(val: CacheToLocal): CacheToLocal;
|
|
1550
|
+
interface CacheToRegistry {
|
|
1551
|
+
/**
|
|
1552
|
+
* The compression type to use.
|
|
1553
|
+
*/
|
|
1554
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1555
|
+
/**
|
|
1556
|
+
* Compression level from 0 to 22.
|
|
1557
|
+
*/
|
|
1558
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Forcefully apply compression.
|
|
1561
|
+
*/
|
|
1562
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Ignore errors caused by failed cache exports.
|
|
1565
|
+
*/
|
|
1566
|
+
ignoreError?: pulumi.Input<boolean>;
|
|
1567
|
+
/**
|
|
1568
|
+
* Export cache manifest as an OCI-compatible image manifest instead of a
|
|
1569
|
+
* manifest list (requires OCI media types).
|
|
1570
|
+
*
|
|
1571
|
+
* Defaults to `false`.
|
|
1572
|
+
*/
|
|
1573
|
+
imageManifest?: pulumi.Input<boolean>;
|
|
1574
|
+
/**
|
|
1575
|
+
* The cache mode to use. Defaults to `min`.
|
|
1576
|
+
*/
|
|
1577
|
+
mode?: pulumi.Input<enums.buildx.CacheMode>;
|
|
1578
|
+
/**
|
|
1579
|
+
* Whether to use OCI media types in exported manifests. Defaults to
|
|
1580
|
+
* `true`.
|
|
1581
|
+
*/
|
|
1582
|
+
ociMediaTypes?: pulumi.Input<boolean>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Fully qualified name of the cache image to import.
|
|
1585
|
+
*/
|
|
1586
|
+
ref: pulumi.Input<string>;
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* cacheToRegistryProvideDefaults sets the appropriate defaults for CacheToRegistry
|
|
1590
|
+
*/
|
|
1591
|
+
function cacheToRegistryProvideDefaults(val: CacheToRegistry): CacheToRegistry;
|
|
1592
|
+
interface CacheToS3 {
|
|
1593
|
+
/**
|
|
1594
|
+
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
1595
|
+
*/
|
|
1596
|
+
accessKeyId?: pulumi.Input<string>;
|
|
1597
|
+
/**
|
|
1598
|
+
* Prefix to prepend to blob filenames.
|
|
1599
|
+
*/
|
|
1600
|
+
blobsPrefix?: pulumi.Input<string>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Name of the S3 bucket.
|
|
1603
|
+
*/
|
|
1604
|
+
bucket: pulumi.Input<string>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Endpoint of the S3 bucket.
|
|
1607
|
+
*/
|
|
1608
|
+
endpointUrl?: pulumi.Input<string>;
|
|
1609
|
+
/**
|
|
1610
|
+
* Ignore errors caused by failed cache exports.
|
|
1611
|
+
*/
|
|
1612
|
+
ignoreError?: pulumi.Input<boolean>;
|
|
1613
|
+
/**
|
|
1614
|
+
* Prefix to prepend on manifest filenames.
|
|
1615
|
+
*/
|
|
1616
|
+
manifestsPrefix?: pulumi.Input<string>;
|
|
1617
|
+
/**
|
|
1618
|
+
* The cache mode to use. Defaults to `min`.
|
|
1619
|
+
*/
|
|
1620
|
+
mode?: pulumi.Input<enums.buildx.CacheMode>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Name of the cache image.
|
|
1623
|
+
*/
|
|
1624
|
+
name?: pulumi.Input<string>;
|
|
1625
|
+
/**
|
|
1626
|
+
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
1627
|
+
*/
|
|
1628
|
+
region: pulumi.Input<string>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
1631
|
+
*/
|
|
1632
|
+
secretAccessKey?: pulumi.Input<string>;
|
|
1633
|
+
/**
|
|
1634
|
+
* Defaults to `$AWS_SESSION_TOKEN`.
|
|
1635
|
+
*/
|
|
1636
|
+
sessionToken?: pulumi.Input<string>;
|
|
1637
|
+
/**
|
|
1638
|
+
* Uses `bucket` in the URL instead of hostname when `true`.
|
|
1639
|
+
*/
|
|
1640
|
+
usePathStyle?: pulumi.Input<boolean>;
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* cacheToS3ProvideDefaults sets the appropriate defaults for CacheToS3
|
|
1644
|
+
*/
|
|
1645
|
+
function cacheToS3ProvideDefaults(val: CacheToS3): CacheToS3;
|
|
1646
|
+
interface Context {
|
|
1647
|
+
/**
|
|
1648
|
+
* Resources to use for build context.
|
|
1649
|
+
*
|
|
1650
|
+
* The location can be:
|
|
1651
|
+
* * A relative or absolute path to a local directory (`.`, `./app`,
|
|
1652
|
+
* `/app`, etc.).
|
|
1653
|
+
* * A remote URL of a Git repository, tarball, or plain text file
|
|
1654
|
+
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
1655
|
+
* etc.).
|
|
1656
|
+
*/
|
|
1657
|
+
location: pulumi.Input<string>;
|
|
1658
|
+
}
|
|
1659
|
+
interface Dockerfile {
|
|
1660
|
+
/**
|
|
1661
|
+
* Raw Dockerfile contents.
|
|
1662
|
+
*
|
|
1663
|
+
* Conflicts with `location`.
|
|
1664
|
+
*
|
|
1665
|
+
* Equivalent to invoking Docker with `-f -`.
|
|
1666
|
+
*/
|
|
1667
|
+
inline?: pulumi.Input<string>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Location of the Dockerfile to use.
|
|
1670
|
+
*
|
|
1671
|
+
* Can be a relative or absolute path to a local file, or a remote URL.
|
|
1672
|
+
*
|
|
1673
|
+
* Defaults to `${context.location}/Dockerfile` if context is on-disk.
|
|
1674
|
+
*
|
|
1675
|
+
* Conflicts with `inline`.
|
|
1676
|
+
*/
|
|
1677
|
+
location?: pulumi.Input<string>;
|
|
1678
|
+
}
|
|
1679
|
+
interface ExportDocker {
|
|
1680
|
+
/**
|
|
1681
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
1682
|
+
*/
|
|
1683
|
+
annotations?: pulumi.Input<{
|
|
1684
|
+
[key: string]: pulumi.Input<string>;
|
|
1685
|
+
}>;
|
|
1686
|
+
/**
|
|
1687
|
+
* The compression type to use.
|
|
1688
|
+
*/
|
|
1689
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1690
|
+
/**
|
|
1691
|
+
* Compression level from 0 to 22.
|
|
1692
|
+
*/
|
|
1693
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1694
|
+
/**
|
|
1695
|
+
* The local export path.
|
|
1696
|
+
*/
|
|
1697
|
+
dest?: pulumi.Input<string>;
|
|
1698
|
+
/**
|
|
1699
|
+
* Forcefully apply compression.
|
|
1700
|
+
*/
|
|
1701
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1702
|
+
/**
|
|
1703
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
1704
|
+
*/
|
|
1705
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Use OCI media types in exporter manifests.
|
|
1708
|
+
*/
|
|
1709
|
+
ociMediaTypes?: pulumi.Input<boolean>;
|
|
1710
|
+
/**
|
|
1711
|
+
* Bundle the output into a tarball layout.
|
|
1712
|
+
*/
|
|
1713
|
+
tar?: pulumi.Input<boolean>;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* exportDockerProvideDefaults sets the appropriate defaults for ExportDocker
|
|
1717
|
+
*/
|
|
1718
|
+
function exportDockerProvideDefaults(val: ExportDocker): ExportDocker;
|
|
1719
|
+
interface ExportEntry {
|
|
1720
|
+
/**
|
|
1721
|
+
* When `true` this entry will be excluded. Defaults to `false`.
|
|
1722
|
+
*/
|
|
1723
|
+
disabled?: pulumi.Input<boolean>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Export as a Docker image layout.
|
|
1726
|
+
*/
|
|
1727
|
+
docker?: pulumi.Input<inputs.buildx.ExportDocker>;
|
|
1728
|
+
/**
|
|
1729
|
+
* Outputs the build result into a container image format.
|
|
1730
|
+
*/
|
|
1731
|
+
image?: pulumi.Input<inputs.buildx.ExportImage>;
|
|
1732
|
+
/**
|
|
1733
|
+
* Export to a local directory as files and directories.
|
|
1734
|
+
*/
|
|
1735
|
+
local?: pulumi.Input<inputs.buildx.ExportLocal>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Identical to the Docker exporter but uses OCI media types by default.
|
|
1738
|
+
*/
|
|
1739
|
+
oci?: pulumi.Input<inputs.buildx.ExportOCI>;
|
|
1740
|
+
/**
|
|
1741
|
+
* A raw string as you would provide it to the Docker CLI (e.g.,
|
|
1742
|
+
* `type=docker`)
|
|
1743
|
+
*/
|
|
1744
|
+
raw?: pulumi.Input<string>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Identical to the Image exporter, but pushes by default.
|
|
1747
|
+
*/
|
|
1748
|
+
registry?: pulumi.Input<inputs.buildx.ExportRegistry>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Export to a local directory as a tarball.
|
|
1751
|
+
*/
|
|
1752
|
+
tar?: pulumi.Input<inputs.buildx.ExportTar>;
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* exportEntryProvideDefaults sets the appropriate defaults for ExportEntry
|
|
1756
|
+
*/
|
|
1757
|
+
function exportEntryProvideDefaults(val: ExportEntry): ExportEntry;
|
|
1758
|
+
interface ExportImage {
|
|
1759
|
+
/**
|
|
1760
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
1761
|
+
*/
|
|
1762
|
+
annotations?: pulumi.Input<{
|
|
1763
|
+
[key: string]: pulumi.Input<string>;
|
|
1764
|
+
}>;
|
|
1765
|
+
/**
|
|
1766
|
+
* The compression type to use.
|
|
1767
|
+
*/
|
|
1768
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1769
|
+
/**
|
|
1770
|
+
* Compression level from 0 to 22.
|
|
1771
|
+
*/
|
|
1772
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1773
|
+
/**
|
|
1774
|
+
* Name image with `prefix@<digest>`, used for anonymous images.
|
|
1775
|
+
*/
|
|
1776
|
+
danglingNamePrefix?: pulumi.Input<string>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Forcefully apply compression.
|
|
1779
|
+
*/
|
|
1780
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Allow pushing to an insecure registry.
|
|
1783
|
+
*/
|
|
1784
|
+
insecure?: pulumi.Input<boolean>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Add additional canonical name (`name@<digest>`).
|
|
1787
|
+
*/
|
|
1788
|
+
nameCanonical?: pulumi.Input<boolean>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
1791
|
+
*/
|
|
1792
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Use OCI media types in exporter manifests.
|
|
1795
|
+
*/
|
|
1796
|
+
ociMediaTypes?: pulumi.Input<boolean>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Push after creating the image.
|
|
1799
|
+
*/
|
|
1800
|
+
push?: pulumi.Input<boolean>;
|
|
1801
|
+
/**
|
|
1802
|
+
* Push image without name.
|
|
1803
|
+
*/
|
|
1804
|
+
pushByDigest?: pulumi.Input<boolean>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Store resulting images to the worker's image store and ensure all of
|
|
1807
|
+
* its blobs are in the content store.
|
|
1808
|
+
*
|
|
1809
|
+
* Defaults to `true`.
|
|
1810
|
+
*
|
|
1811
|
+
* Ignored if the worker doesn't have image store (when using OCI workers,
|
|
1812
|
+
* for example).
|
|
1813
|
+
*/
|
|
1814
|
+
store?: pulumi.Input<boolean>;
|
|
1815
|
+
/**
|
|
1816
|
+
* Unpack image after creation (for use with containerd). Defaults to
|
|
1817
|
+
* `false`.
|
|
1818
|
+
*/
|
|
1819
|
+
unpack?: pulumi.Input<boolean>;
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* exportImageProvideDefaults sets the appropriate defaults for ExportImage
|
|
1823
|
+
*/
|
|
1824
|
+
function exportImageProvideDefaults(val: ExportImage): ExportImage;
|
|
1825
|
+
interface ExportLocal {
|
|
1826
|
+
/**
|
|
1827
|
+
* Output path.
|
|
1828
|
+
*/
|
|
1829
|
+
dest: pulumi.Input<string>;
|
|
1830
|
+
}
|
|
1831
|
+
interface ExportOCI {
|
|
1832
|
+
/**
|
|
1833
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
1834
|
+
*/
|
|
1835
|
+
annotations?: pulumi.Input<{
|
|
1836
|
+
[key: string]: pulumi.Input<string>;
|
|
1837
|
+
}>;
|
|
1838
|
+
/**
|
|
1839
|
+
* The compression type to use.
|
|
1840
|
+
*/
|
|
1841
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Compression level from 0 to 22.
|
|
1844
|
+
*/
|
|
1845
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1846
|
+
/**
|
|
1847
|
+
* The local export path.
|
|
1848
|
+
*/
|
|
1849
|
+
dest?: pulumi.Input<string>;
|
|
1850
|
+
/**
|
|
1851
|
+
* Forcefully apply compression.
|
|
1852
|
+
*/
|
|
1853
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1854
|
+
/**
|
|
1855
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
1856
|
+
*/
|
|
1857
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Use OCI media types in exporter manifests.
|
|
1860
|
+
*/
|
|
1861
|
+
ociMediaTypes?: pulumi.Input<boolean>;
|
|
1862
|
+
/**
|
|
1863
|
+
* Bundle the output into a tarball layout.
|
|
1864
|
+
*/
|
|
1865
|
+
tar?: pulumi.Input<boolean>;
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* exportOCIProvideDefaults sets the appropriate defaults for ExportOCI
|
|
1869
|
+
*/
|
|
1870
|
+
function exportOCIProvideDefaults(val: ExportOCI): ExportOCI;
|
|
1871
|
+
interface ExportRegistry {
|
|
1872
|
+
/**
|
|
1873
|
+
* Attach an arbitrary key/value annotation to the image.
|
|
1874
|
+
*/
|
|
1875
|
+
annotations?: pulumi.Input<{
|
|
1876
|
+
[key: string]: pulumi.Input<string>;
|
|
1877
|
+
}>;
|
|
1878
|
+
/**
|
|
1879
|
+
* The compression type to use.
|
|
1880
|
+
*/
|
|
1881
|
+
compression?: pulumi.Input<enums.buildx.CompressionType>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Compression level from 0 to 22.
|
|
1884
|
+
*/
|
|
1885
|
+
compressionLevel?: pulumi.Input<number>;
|
|
1886
|
+
/**
|
|
1887
|
+
* Name image with `prefix@<digest>`, used for anonymous images.
|
|
1888
|
+
*/
|
|
1889
|
+
danglingNamePrefix?: pulumi.Input<string>;
|
|
1890
|
+
/**
|
|
1891
|
+
* Forcefully apply compression.
|
|
1892
|
+
*/
|
|
1893
|
+
forceCompression?: pulumi.Input<boolean>;
|
|
1894
|
+
/**
|
|
1895
|
+
* Allow pushing to an insecure registry.
|
|
1896
|
+
*/
|
|
1897
|
+
insecure?: pulumi.Input<boolean>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Add additional canonical name (`name@<digest>`).
|
|
1900
|
+
*/
|
|
1901
|
+
nameCanonical?: pulumi.Input<boolean>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Specify images names to export. This is overridden if tags are already specified.
|
|
1904
|
+
*/
|
|
1905
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1906
|
+
/**
|
|
1907
|
+
* Use OCI media types in exporter manifests.
|
|
1908
|
+
*/
|
|
1909
|
+
ociMediaTypes?: pulumi.Input<boolean>;
|
|
1910
|
+
/**
|
|
1911
|
+
* Push after creating the image.
|
|
1912
|
+
*/
|
|
1913
|
+
push?: pulumi.Input<boolean>;
|
|
1914
|
+
/**
|
|
1915
|
+
* Push image without name.
|
|
1916
|
+
*/
|
|
1917
|
+
pushByDigest?: pulumi.Input<boolean>;
|
|
1918
|
+
/**
|
|
1919
|
+
* Store resulting images to the worker's image store and ensure all of
|
|
1920
|
+
* its blobs are in the content store.
|
|
1921
|
+
*
|
|
1922
|
+
* Defaults to `true`.
|
|
1923
|
+
*
|
|
1924
|
+
* Ignored if the worker doesn't have image store (when using OCI workers,
|
|
1925
|
+
* for example).
|
|
1926
|
+
*/
|
|
1927
|
+
store?: pulumi.Input<boolean>;
|
|
1928
|
+
/**
|
|
1929
|
+
* Unpack image after creation (for use with containerd). Defaults to
|
|
1930
|
+
* `false`.
|
|
1931
|
+
*/
|
|
1932
|
+
unpack?: pulumi.Input<boolean>;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* exportRegistryProvideDefaults sets the appropriate defaults for ExportRegistry
|
|
1936
|
+
*/
|
|
1937
|
+
function exportRegistryProvideDefaults(val: ExportRegistry): ExportRegistry;
|
|
1938
|
+
interface ExportTar {
|
|
1939
|
+
/**
|
|
1940
|
+
* Output path.
|
|
1941
|
+
*/
|
|
1942
|
+
dest: pulumi.Input<string>;
|
|
1943
|
+
}
|
|
1179
1944
|
interface RegistryAuth {
|
|
1180
1945
|
/**
|
|
1181
|
-
* The registry's address (e.g. "docker.io")
|
|
1946
|
+
* The registry's address (e.g. "docker.io").
|
|
1182
1947
|
*/
|
|
1183
1948
|
address: pulumi.Input<string>;
|
|
1184
1949
|
/**
|
|
1185
|
-
* Password or token for the registry
|
|
1950
|
+
* Password or token for the registry.
|
|
1186
1951
|
*/
|
|
1187
1952
|
password?: pulumi.Input<string>;
|
|
1188
1953
|
/**
|
|
1189
|
-
* Username for the registry
|
|
1954
|
+
* Username for the registry.
|
|
1190
1955
|
*/
|
|
1191
1956
|
username?: pulumi.Input<string>;
|
|
1192
1957
|
}
|
|
1958
|
+
interface SSH {
|
|
1959
|
+
/**
|
|
1960
|
+
* Useful for distinguishing different servers that are part of the same
|
|
1961
|
+
* build.
|
|
1962
|
+
*
|
|
1963
|
+
* A value of `default` is appropriate if only dealing with a single host.
|
|
1964
|
+
*/
|
|
1965
|
+
id: pulumi.Input<string>;
|
|
1966
|
+
/**
|
|
1967
|
+
* SSH agent socket or private keys to expose to the build under the given
|
|
1968
|
+
* identifier.
|
|
1969
|
+
*
|
|
1970
|
+
* Defaults to `[$SSH_AUTH_SOCK]`.
|
|
1971
|
+
*
|
|
1972
|
+
* Note that your keys are **not** automatically added when using an
|
|
1973
|
+
* agent. Run `ssh-add -l` locally to confirm which public keys are
|
|
1974
|
+
* visible to the agent; these will be exposed to your build.
|
|
1975
|
+
*/
|
|
1976
|
+
paths?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1977
|
+
}
|
|
1193
1978
|
}
|
|
1194
1979
|
export declare namespace config {
|
|
1195
1980
|
}
|