@pulumi/docker 4.0.0-alpha.3 → 4.0.0
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/image.d.ts +1 -1
- package/image.js +4 -1
- package/image.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/types/input.d.ts +3 -3
package/image.d.ts
CHANGED
package/image.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Image = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const inputs = require("./types/input");
|
|
7
8
|
const utilities = require("./utilities");
|
|
8
9
|
/**
|
|
9
10
|
* Builds a Docker Image and pushes to a Docker registry.
|
|
@@ -65,7 +66,7 @@ class Image extends pulumi.CustomResource {
|
|
|
65
66
|
if ((!args || args.imageName === undefined) && !opts.urn) {
|
|
66
67
|
throw new Error("Missing required property 'imageName'");
|
|
67
68
|
}
|
|
68
|
-
resourceInputs["build"] = args ? args.build : undefined;
|
|
69
|
+
resourceInputs["build"] = args ? (args.build ? pulumi.output(args.build).apply(inputs.dockerBuildProvideDefaults) : undefined) : undefined;
|
|
69
70
|
resourceInputs["imageName"] = args ? args.imageName : undefined;
|
|
70
71
|
resourceInputs["registry"] = args ? args.registry : undefined;
|
|
71
72
|
resourceInputs["skipPush"] = (_a = (args ? args.skipPush : undefined)) !== null && _a !== void 0 ? _a : false;
|
|
@@ -78,6 +79,8 @@ class Image extends pulumi.CustomResource {
|
|
|
78
79
|
resourceInputs["registryServer"] = undefined /*out*/;
|
|
79
80
|
}
|
|
80
81
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
const aliasOpts = { aliases: [{ type: "docker:image:Image" }] };
|
|
83
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
81
84
|
super(Image.__pulumiType, name, resourceInputs, opts);
|
|
82
85
|
}
|
|
83
86
|
}
|
package/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../image.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../image.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,wCAAwC;AAGxC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAeD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAe,EAAE,IAAmC;;QAC1E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,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AzDG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/docker",
|
|
3
|
-
"version": "v4.0.0
|
|
3
|
+
"version": "v4.0.0",
|
|
4
4
|
"description": "A Pulumi package for interacting with Docker in Pulumi programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource docker v4.0.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource docker v4.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/docker",
|
|
3
|
-
"version": "v4.0.0
|
|
3
|
+
"version": "v4.0.0",
|
|
4
4
|
"description": "A Pulumi package for interacting with Docker in Pulumi programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource docker v4.0.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource docker v4.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/types/input.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ export interface DockerBuild {
|
|
|
268
268
|
*/
|
|
269
269
|
builderVersion?: pulumi.Input<enums.BuilderVersion>;
|
|
270
270
|
/**
|
|
271
|
-
* A list of
|
|
271
|
+
* A list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry.
|
|
272
272
|
*/
|
|
273
273
|
cacheFrom?: pulumi.Input<inputs.CacheFrom>;
|
|
274
274
|
/**
|
|
@@ -344,7 +344,7 @@ export interface ProviderRegistryAuth {
|
|
|
344
344
|
*/
|
|
345
345
|
export interface Registry {
|
|
346
346
|
/**
|
|
347
|
-
* The password to authenticate to the registry
|
|
347
|
+
* The password to authenticate to the registry. Does not cause image rebuild when changed.
|
|
348
348
|
*/
|
|
349
349
|
password?: pulumi.Input<string>;
|
|
350
350
|
/**
|
|
@@ -352,7 +352,7 @@ export interface Registry {
|
|
|
352
352
|
*/
|
|
353
353
|
server?: pulumi.Input<string>;
|
|
354
354
|
/**
|
|
355
|
-
* The username to authenticate to the registry
|
|
355
|
+
* The username to authenticate to the registry. Does not cause image rebuild when changed.
|
|
356
356
|
*/
|
|
357
357
|
username?: pulumi.Input<string>;
|
|
358
358
|
}
|