@pulumiverse/buildkite 2.3.1 → 3.0.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/README.md +5 -0
- package/agent/agentToken.d.ts +13 -19
- package/agent/agentToken.js +6 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +76 -20
- package/cluster/cluster.js +56 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +51 -15
- package/cluster/clusterAgentToken.js +28 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +132 -0
- package/cluster/clusterDefaultQueue.js +123 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +44 -50
- package/cluster/clusterQueue.js +37 -43
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +52 -5
- package/cluster/getCluster.js +44 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +9 -7
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +55 -1
- package/getMeta.js +55 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +106 -0
- package/organization/banner.js +104 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +12 -21
- package/organization/getOrganization.js +9 -21
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -3
- package/organization/index.js +8 -7
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +31 -13
- package/organization/organization.js +12 -10
- package/organization/organization.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +26 -18
- package/pipeline/getPipeline.js +12 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +143 -0
- package/pipeline/getSignedSteps.js +95 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +120 -0
- package/pipeline/getTemplate.js +83 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +12 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +116 -101
- package/pipeline/pipeline.js +18 -16
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +64 -53
- package/pipeline/schedule.js +38 -27
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +42 -31
- package/pipeline/team.js +34 -23
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +157 -0
- package/pipeline/template.js +125 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +23 -9
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +33 -34
- package/team/getTeam.js +18 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +44 -44
- package/team/member.js +33 -33
- package/team/team.d.ts +45 -43
- package/team/team.js +26 -24
- package/team/team.js.map +1 -1
- package/testsuite/team.d.ts +48 -52
- package/testsuite/team.js +43 -47
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +21 -27
- package/testsuite/testSuite.js +6 -12
- package/testsuite/testSuite.js.map +1 -1
- package/types/input.d.ts +37 -21
- package/types/output.d.ts +34 -18
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -80
- package/organization/settings.js +0 -81
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/organization/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
export { BannerArgs, BannerState } from "./banner";
|
|
2
|
+
export type Banner = import("./banner").Banner;
|
|
3
|
+
export declare const Banner: typeof import("./banner").Banner;
|
|
1
4
|
export { GetOrganizationResult } from "./getOrganization";
|
|
2
5
|
export declare const getOrganization: typeof import("./getOrganization").getOrganization;
|
|
6
|
+
export declare const getOrganizationOutput: typeof import("./getOrganization").getOrganizationOutput;
|
|
3
7
|
export { OrganizationArgs, OrganizationState } from "./organization";
|
|
4
8
|
export type Organization = import("./organization").Organization;
|
|
5
9
|
export declare const Organization: typeof import("./organization").Organization;
|
|
6
|
-
export { SettingsArgs, SettingsState } from "./settings";
|
|
7
|
-
export type Settings = import("./settings").Settings;
|
|
8
|
-
export declare const Settings: typeof import("./settings").Settings;
|
package/organization/index.js
CHANGED
|
@@ -2,28 +2,29 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.Organization = exports.getOrganizationOutput = exports.getOrganization = exports.Banner = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.Banner = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Banner"], () => require("./banner"));
|
|
8
10
|
exports.getOrganization = null;
|
|
9
|
-
|
|
11
|
+
exports.getOrganizationOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["getOrganization", "getOrganizationOutput"], () => require("./getOrganization"));
|
|
10
13
|
exports.Organization = null;
|
|
11
14
|
utilities.lazyLoad(exports, ["Organization"], () => require("./organization"));
|
|
12
|
-
exports.Settings = null;
|
|
13
|
-
utilities.lazyLoad(exports, ["Settings"], () => require("./settings"));
|
|
14
15
|
const _module = {
|
|
15
16
|
version: utilities.getVersion(),
|
|
16
17
|
construct: (name, type, urn) => {
|
|
17
18
|
switch (type) {
|
|
19
|
+
case "buildkite:Organization/banner:Banner":
|
|
20
|
+
return new exports.Banner(name, undefined, { urn });
|
|
18
21
|
case "buildkite:Organization/organization:Organization":
|
|
19
22
|
return new exports.Organization(name, undefined, { urn });
|
|
20
|
-
case "buildkite:Organization/settings:Settings":
|
|
21
|
-
return new exports.Settings(name, undefined, { urn });
|
|
22
23
|
default:
|
|
23
24
|
throw new Error(`unknown resource type ${type}`);
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
};
|
|
28
|
+
pulumi.runtime.registerResourceModule("buildkite", "Organization/banner", _module);
|
|
27
29
|
pulumi.runtime.registerResourceModule("buildkite", "Organization/organization", _module);
|
|
28
|
-
pulumi.runtime.registerResourceModule("buildkite", "Organization/settings", _module);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../organization/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../organization/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAGtD,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIhG,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAG/E,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,sCAAsC;gBACvC,OAAO,IAAI,cAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD,KAAK,kDAAkD;gBACnD,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* ## # Resource: organization
|
|
4
|
-
*
|
|
5
3
|
* This resource allows you to manage the settings for an organization.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
5
|
+
* The user of your API token must be an organization administrator to manage organization settings.
|
|
10
6
|
*
|
|
11
7
|
* ## Example Usage
|
|
12
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
10
|
* ```typescript
|
|
14
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
12
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
16
13
|
*
|
|
17
|
-
*
|
|
14
|
+
* // allow api access only from 1.1.1.1 and enforce 2fa for all members
|
|
15
|
+
* const settings = new buildkite.organization.Organization("settings", {
|
|
16
|
+
* allowedApiIpAddresses: ["1.1.1.1/32"],
|
|
17
|
+
* enforce2fa: true,
|
|
18
|
+
* });
|
|
18
19
|
* ```
|
|
20
|
+
* <!--End PulumiCodeChooser -->
|
|
19
21
|
*
|
|
20
22
|
* ## Import
|
|
21
23
|
*
|
|
22
|
-
*
|
|
24
|
+
* import the organization settings via the organization slug
|
|
23
25
|
*
|
|
24
26
|
* ```sh
|
|
25
|
-
*
|
|
27
|
+
* $ pulumi import buildkite:Organization/organization:Organization settings <organization slug>
|
|
26
28
|
* ```
|
|
27
|
-
*
|
|
28
|
-
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
29
29
|
*/
|
|
30
30
|
export declare class Organization extends pulumi.CustomResource {
|
|
31
31
|
/**
|
|
@@ -44,9 +44,16 @@ export declare class Organization extends pulumi.CustomResource {
|
|
|
44
44
|
*/
|
|
45
45
|
static isInstance(obj: any): obj is Organization;
|
|
46
46
|
/**
|
|
47
|
-
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
47
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
48
48
|
*/
|
|
49
49
|
readonly allowedApiIpAddresses: pulumi.Output<string[] | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Sets whether the organization requires two-factor authentication for all members.
|
|
52
|
+
*/
|
|
53
|
+
readonly enforce2fa: pulumi.Output<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* The UUID of the organization.
|
|
56
|
+
*/
|
|
50
57
|
readonly uuid: pulumi.Output<string>;
|
|
51
58
|
/**
|
|
52
59
|
* Create a Organization resource with the given unique name, arguments, and options.
|
|
@@ -62,9 +69,16 @@ export declare class Organization extends pulumi.CustomResource {
|
|
|
62
69
|
*/
|
|
63
70
|
export interface OrganizationState {
|
|
64
71
|
/**
|
|
65
|
-
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
72
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
66
73
|
*/
|
|
67
74
|
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Sets whether the organization requires two-factor authentication for all members.
|
|
77
|
+
*/
|
|
78
|
+
enforce2fa?: pulumi.Input<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* The UUID of the organization.
|
|
81
|
+
*/
|
|
68
82
|
uuid?: pulumi.Input<string>;
|
|
69
83
|
}
|
|
70
84
|
/**
|
|
@@ -72,7 +86,11 @@ export interface OrganizationState {
|
|
|
72
86
|
*/
|
|
73
87
|
export interface OrganizationArgs {
|
|
74
88
|
/**
|
|
75
|
-
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.
|
|
89
|
+
* A list of IP addresses in CIDR format that are allowed to access the Buildkite API.If not set, all IP addresses are allowed (the same as setting 0.0.0.0/0).
|
|
76
90
|
*/
|
|
77
91
|
allowedApiIpAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Sets whether the organization requires two-factor authentication for all members.
|
|
94
|
+
*/
|
|
95
|
+
enforce2fa?: pulumi.Input<boolean>;
|
|
78
96
|
}
|
|
@@ -6,32 +6,32 @@ exports.Organization = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## # Resource: organization
|
|
10
|
-
*
|
|
11
9
|
* This resource allows you to manage the settings for an organization.
|
|
12
10
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* Note: The "Allowed API IP Addresses" feature must be enabled on your organization in order to manage the `allowedApiIpAddresses` attribute.
|
|
11
|
+
* The user of your API token must be an organization administrator to manage organization settings.
|
|
16
12
|
*
|
|
17
13
|
* ## Example Usage
|
|
18
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
19
16
|
* ```typescript
|
|
20
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
18
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
22
19
|
*
|
|
23
|
-
*
|
|
20
|
+
* // allow api access only from 1.1.1.1 and enforce 2fa for all members
|
|
21
|
+
* const settings = new buildkite.organization.Organization("settings", {
|
|
22
|
+
* allowedApiIpAddresses: ["1.1.1.1/32"],
|
|
23
|
+
* enforce2fa: true,
|
|
24
|
+
* });
|
|
24
25
|
* ```
|
|
26
|
+
* <!--End PulumiCodeChooser -->
|
|
25
27
|
*
|
|
26
28
|
* ## Import
|
|
27
29
|
*
|
|
28
|
-
*
|
|
30
|
+
* import the organization settings via the organization slug
|
|
29
31
|
*
|
|
30
32
|
* ```sh
|
|
31
|
-
*
|
|
33
|
+
* $ pulumi import buildkite:Organization/organization:Organization settings <organization slug>
|
|
32
34
|
* ```
|
|
33
|
-
*
|
|
34
|
-
* Your organization's slug can be found in your organisation's [settings](https://buildkite.com/organizations/~/settings) page.
|
|
35
35
|
*/
|
|
36
36
|
class Organization extends pulumi.CustomResource {
|
|
37
37
|
/**
|
|
@@ -62,11 +62,13 @@ class Organization extends pulumi.CustomResource {
|
|
|
62
62
|
if (opts.id) {
|
|
63
63
|
const state = argsOrState;
|
|
64
64
|
resourceInputs["allowedApiIpAddresses"] = state ? state.allowedApiIpAddresses : undefined;
|
|
65
|
+
resourceInputs["enforce2fa"] = state ? state.enforce2fa : undefined;
|
|
65
66
|
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
66
67
|
}
|
|
67
68
|
else {
|
|
68
69
|
const args = argsOrState;
|
|
69
70
|
resourceInputs["allowedApiIpAddresses"] = args ? args.allowedApiIpAddresses : undefined;
|
|
71
|
+
resourceInputs["enforce2fa"] = args ? args.enforce2fa : undefined;
|
|
70
72
|
resourceInputs["uuid"] = undefined /*out*/;
|
|
71
73
|
}
|
|
72
74
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../organization/organization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../organization/organization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAjEL,oCAkEC;AApDG,gBAAgB;AACO,yBAAY,GAAG,kDAAkD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/buildkite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v3.0.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource buildkite v2.3.1"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.bak
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumiverse/pulumi-buildkite",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource buildkite ${VERSION}"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* particularly useful for looking up the webhook URL for each pipeline.
|
|
7
|
-
*
|
|
8
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
5
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/pipelines).
|
|
9
6
|
*
|
|
10
7
|
* ## Example Usage
|
|
11
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
10
|
* ```typescript
|
|
13
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
12
|
* import * as buildkite from "@pulumi/buildkite";
|
|
15
13
|
*
|
|
16
|
-
* const
|
|
17
|
-
* slug: "
|
|
14
|
+
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
15
|
+
* slug: "buildkite",
|
|
18
16
|
* });
|
|
19
17
|
* ```
|
|
18
|
+
* <!--End PulumiCodeChooser -->
|
|
20
19
|
*/
|
|
21
20
|
export declare function getPipeline(args: GetPipelineArgs, opts?: pulumi.InvokeOptions): Promise<GetPipelineResult>;
|
|
22
21
|
/**
|
|
@@ -24,7 +23,7 @@ export declare function getPipeline(args: GetPipelineArgs, opts?: pulumi.InvokeO
|
|
|
24
23
|
*/
|
|
25
24
|
export interface GetPipelineArgs {
|
|
26
25
|
/**
|
|
27
|
-
* The slug of the pipeline
|
|
26
|
+
* The slug of the pipeline.
|
|
28
27
|
*/
|
|
29
28
|
slug: string;
|
|
30
29
|
}
|
|
@@ -33,13 +32,16 @@ export interface GetPipelineArgs {
|
|
|
33
32
|
*/
|
|
34
33
|
export interface GetPipelineResult {
|
|
35
34
|
/**
|
|
36
|
-
* The default branch to prefill when new builds are created or triggered
|
|
35
|
+
* The default branch to prefill when new builds are created or triggered.
|
|
37
36
|
*/
|
|
38
37
|
readonly defaultBranch: string;
|
|
39
38
|
/**
|
|
40
|
-
*
|
|
39
|
+
* The description of the pipeline.
|
|
41
40
|
*/
|
|
42
41
|
readonly description: string;
|
|
42
|
+
/**
|
|
43
|
+
* The GraphQL ID of the pipeline.
|
|
44
|
+
*/
|
|
43
45
|
readonly id: string;
|
|
44
46
|
/**
|
|
45
47
|
* The name of the pipeline.
|
|
@@ -49,30 +51,36 @@ export interface GetPipelineResult {
|
|
|
49
51
|
* The git URL of the repository.
|
|
50
52
|
*/
|
|
51
53
|
readonly repository: string;
|
|
54
|
+
/**
|
|
55
|
+
* The slug of the pipeline.
|
|
56
|
+
*/
|
|
52
57
|
readonly slug: string;
|
|
58
|
+
/**
|
|
59
|
+
* The UUID of the pipeline.
|
|
60
|
+
*/
|
|
61
|
+
readonly uuid: string;
|
|
53
62
|
/**
|
|
54
63
|
* The Buildkite webhook URL that triggers builds on this pipeline.
|
|
55
64
|
*/
|
|
56
65
|
readonly webhookUrl: string;
|
|
57
66
|
}
|
|
58
67
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Use this data source to look up properties on a specific pipeline. This is
|
|
62
|
-
* particularly useful for looking up the webhook URL for each pipeline.
|
|
68
|
+
* Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.
|
|
63
69
|
*
|
|
64
|
-
* Buildkite
|
|
70
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/pipelines).
|
|
65
71
|
*
|
|
66
72
|
* ## Example Usage
|
|
67
73
|
*
|
|
74
|
+
* <!--Start PulumiCodeChooser -->
|
|
68
75
|
* ```typescript
|
|
69
76
|
* import * as pulumi from "@pulumi/pulumi";
|
|
70
77
|
* import * as buildkite from "@pulumi/buildkite";
|
|
71
78
|
*
|
|
72
|
-
* const
|
|
73
|
-
* slug: "
|
|
79
|
+
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
80
|
+
* slug: "buildkite",
|
|
74
81
|
* });
|
|
75
82
|
* ```
|
|
83
|
+
* <!--End PulumiCodeChooser -->
|
|
76
84
|
*/
|
|
77
85
|
export declare function getPipelineOutput(args: GetPipelineOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPipelineResult>;
|
|
78
86
|
/**
|
|
@@ -80,7 +88,7 @@ export declare function getPipelineOutput(args: GetPipelineOutputArgs, opts?: pu
|
|
|
80
88
|
*/
|
|
81
89
|
export interface GetPipelineOutputArgs {
|
|
82
90
|
/**
|
|
83
|
-
* The slug of the pipeline
|
|
91
|
+
* The slug of the pipeline.
|
|
84
92
|
*/
|
|
85
93
|
slug: pulumi.Input<string>;
|
|
86
94
|
}
|
package/pipeline/getPipeline.js
CHANGED
|
@@ -6,23 +6,22 @@ exports.getPipelineOutput = exports.getPipeline = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
* particularly useful for looking up the webhook URL for each pipeline.
|
|
13
|
-
*
|
|
14
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
11
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/pipelines).
|
|
15
12
|
*
|
|
16
13
|
* ## Example Usage
|
|
17
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
18
16
|
* ```typescript
|
|
19
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
18
|
* import * as buildkite from "@pulumi/buildkite";
|
|
21
19
|
*
|
|
22
|
-
* const
|
|
23
|
-
* slug: "
|
|
20
|
+
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
21
|
+
* slug: "buildkite",
|
|
24
22
|
* });
|
|
25
23
|
* ```
|
|
24
|
+
* <!--End PulumiCodeChooser -->
|
|
26
25
|
*/
|
|
27
26
|
function getPipeline(args, opts) {
|
|
28
27
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -32,23 +31,22 @@ function getPipeline(args, opts) {
|
|
|
32
31
|
}
|
|
33
32
|
exports.getPipeline = getPipeline;
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Use this data source to look up properties on a specific pipeline. This is
|
|
38
|
-
* particularly useful for looking up the webhook URL for each pipeline.
|
|
34
|
+
* Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.
|
|
39
35
|
*
|
|
40
|
-
* Buildkite
|
|
36
|
+
* More info in the Buildkite [documentation](https://buildkite.com/docs/pipelines).
|
|
41
37
|
*
|
|
42
38
|
* ## Example Usage
|
|
43
39
|
*
|
|
40
|
+
* <!--Start PulumiCodeChooser -->
|
|
44
41
|
* ```typescript
|
|
45
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
46
43
|
* import * as buildkite from "@pulumi/buildkite";
|
|
47
44
|
*
|
|
48
|
-
* const
|
|
49
|
-
* slug: "
|
|
45
|
+
* const pipeline = buildkite.Pipeline.getPipeline({
|
|
46
|
+
* slug: "buildkite",
|
|
50
47
|
* });
|
|
51
48
|
* ```
|
|
49
|
+
* <!--End PulumiCodeChooser -->
|
|
52
50
|
*/
|
|
53
51
|
function getPipelineOutput(args, opts) {
|
|
54
52
|
return pulumi.output(args).apply((a) => getPipeline(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPipeline.js","sourceRoot":"","sources":["../../pipeline/getPipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getPipeline.js","sourceRoot":"","sources":["../../pipeline/getPipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AAiDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to sign pipeline steps with a JWKS key. You will need to have
|
|
4
|
+
* the corresponding verification key present on the agents that run this the steps in
|
|
5
|
+
* this pipeline. You can then use these steps in a `buildkite.Pipeline.Pipeline` resource.
|
|
6
|
+
*
|
|
7
|
+
* See [RFC 7517](https://datatracker.ietf.org/doc/html/rfc7517) for more information
|
|
8
|
+
* about the JWKS format.
|
|
9
|
+
*
|
|
10
|
+
* See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
|
|
11
|
+
* for more info about signed pipelines.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
19
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* const repository = "git@github.com:my-org/my-repo.git";
|
|
22
|
+
* const my-steps = buildkite.Pipeline.getSignedSteps({
|
|
23
|
+
* repository: repository,
|
|
24
|
+
* jwksFile: "/path/to/my/jwks.json",
|
|
25
|
+
* jwksKeyId: "my-key",
|
|
26
|
+
* unsignedSteps: `steps:
|
|
27
|
+
* - label: ":pipeline:"
|
|
28
|
+
* command: buildkite-agent pipeline upload
|
|
29
|
+
* `,
|
|
30
|
+
* });
|
|
31
|
+
* const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
|
|
32
|
+
* repository: repository,
|
|
33
|
+
* steps: my_steps.then(my_steps => my_steps.steps),
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
* <!--End PulumiCodeChooser -->
|
|
37
|
+
*/
|
|
38
|
+
export declare function getSignedSteps(args: GetSignedStepsArgs, opts?: pulumi.InvokeOptions): Promise<GetSignedStepsResult>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of arguments for invoking getSignedSteps.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetSignedStepsArgs {
|
|
43
|
+
/**
|
|
44
|
+
* The JSON Web Key Set (JWKS) to use for signing.
|
|
45
|
+
* If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
|
|
46
|
+
* be used.
|
|
47
|
+
*/
|
|
48
|
+
jwks?: string;
|
|
49
|
+
jwksFile?: string;
|
|
50
|
+
jwksKeyId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The repository that will be checked out in a build of the pipeline.
|
|
53
|
+
*/
|
|
54
|
+
repository: string;
|
|
55
|
+
/**
|
|
56
|
+
* The steps to sign in YAML format.
|
|
57
|
+
*/
|
|
58
|
+
unsignedSteps: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A collection of values returned by getSignedSteps.
|
|
62
|
+
*/
|
|
63
|
+
export interface GetSignedStepsResult {
|
|
64
|
+
/**
|
|
65
|
+
* The provider-assigned unique ID for this managed resource.
|
|
66
|
+
*/
|
|
67
|
+
readonly id: string;
|
|
68
|
+
/**
|
|
69
|
+
* The JSON Web Key Set (JWKS) to use for signing.
|
|
70
|
+
* If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
|
|
71
|
+
* be used.
|
|
72
|
+
*/
|
|
73
|
+
readonly jwks?: string;
|
|
74
|
+
readonly jwksFile?: string;
|
|
75
|
+
readonly jwksKeyId?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The repository that will be checked out in a build of the pipeline.
|
|
78
|
+
*/
|
|
79
|
+
readonly repository: string;
|
|
80
|
+
readonly steps: string;
|
|
81
|
+
/**
|
|
82
|
+
* The steps to sign in YAML format.
|
|
83
|
+
*/
|
|
84
|
+
readonly unsignedSteps: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Use this data source to sign pipeline steps with a JWKS key. You will need to have
|
|
88
|
+
* the corresponding verification key present on the agents that run this the steps in
|
|
89
|
+
* this pipeline. You can then use these steps in a `buildkite.Pipeline.Pipeline` resource.
|
|
90
|
+
*
|
|
91
|
+
* See [RFC 7517](https://datatracker.ietf.org/doc/html/rfc7517) for more information
|
|
92
|
+
* about the JWKS format.
|
|
93
|
+
*
|
|
94
|
+
* See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
|
|
95
|
+
* for more info about signed pipelines.
|
|
96
|
+
*
|
|
97
|
+
* ## Example Usage
|
|
98
|
+
*
|
|
99
|
+
* <!--Start PulumiCodeChooser -->
|
|
100
|
+
* ```typescript
|
|
101
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
102
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
103
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
104
|
+
*
|
|
105
|
+
* const repository = "git@github.com:my-org/my-repo.git";
|
|
106
|
+
* const my-steps = buildkite.Pipeline.getSignedSteps({
|
|
107
|
+
* repository: repository,
|
|
108
|
+
* jwksFile: "/path/to/my/jwks.json",
|
|
109
|
+
* jwksKeyId: "my-key",
|
|
110
|
+
* unsignedSteps: `steps:
|
|
111
|
+
* - label: ":pipeline:"
|
|
112
|
+
* command: buildkite-agent pipeline upload
|
|
113
|
+
* `,
|
|
114
|
+
* });
|
|
115
|
+
* const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
|
|
116
|
+
* repository: repository,
|
|
117
|
+
* steps: my_steps.then(my_steps => my_steps.steps),
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
* <!--End PulumiCodeChooser -->
|
|
121
|
+
*/
|
|
122
|
+
export declare function getSignedStepsOutput(args: GetSignedStepsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSignedStepsResult>;
|
|
123
|
+
/**
|
|
124
|
+
* A collection of arguments for invoking getSignedSteps.
|
|
125
|
+
*/
|
|
126
|
+
export interface GetSignedStepsOutputArgs {
|
|
127
|
+
/**
|
|
128
|
+
* The JSON Web Key Set (JWKS) to use for signing.
|
|
129
|
+
* If `jwksKeyId` is not specified, and the set contains exactly one key, that key will
|
|
130
|
+
* be used.
|
|
131
|
+
*/
|
|
132
|
+
jwks?: pulumi.Input<string>;
|
|
133
|
+
jwksFile?: pulumi.Input<string>;
|
|
134
|
+
jwksKeyId?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The repository that will be checked out in a build of the pipeline.
|
|
137
|
+
*/
|
|
138
|
+
repository: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The steps to sign in YAML format.
|
|
141
|
+
*/
|
|
142
|
+
unsignedSteps: pulumi.Input<string>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getSignedStepsOutput = exports.getSignedSteps = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to sign pipeline steps with a JWKS key. You will need to have
|
|
10
|
+
* the corresponding verification key present on the agents that run this the steps in
|
|
11
|
+
* this pipeline. You can then use these steps in a `buildkite.Pipeline.Pipeline` resource.
|
|
12
|
+
*
|
|
13
|
+
* See [RFC 7517](https://datatracker.ietf.org/doc/html/rfc7517) for more information
|
|
14
|
+
* about the JWKS format.
|
|
15
|
+
*
|
|
16
|
+
* See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
|
|
17
|
+
* for more info about signed pipelines.
|
|
18
|
+
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* <!--Start PulumiCodeChooser -->
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
25
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
26
|
+
*
|
|
27
|
+
* const repository = "git@github.com:my-org/my-repo.git";
|
|
28
|
+
* const my-steps = buildkite.Pipeline.getSignedSteps({
|
|
29
|
+
* repository: repository,
|
|
30
|
+
* jwksFile: "/path/to/my/jwks.json",
|
|
31
|
+
* jwksKeyId: "my-key",
|
|
32
|
+
* unsignedSteps: `steps:
|
|
33
|
+
* - label: ":pipeline:"
|
|
34
|
+
* command: buildkite-agent pipeline upload
|
|
35
|
+
* `,
|
|
36
|
+
* });
|
|
37
|
+
* const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
|
|
38
|
+
* repository: repository,
|
|
39
|
+
* steps: my_steps.then(my_steps => my_steps.steps),
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* <!--End PulumiCodeChooser -->
|
|
43
|
+
*/
|
|
44
|
+
function getSignedSteps(args, opts) {
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
46
|
+
return pulumi.runtime.invoke("buildkite:Pipeline/getSignedSteps:getSignedSteps", {
|
|
47
|
+
"jwks": args.jwks,
|
|
48
|
+
"jwksFile": args.jwksFile,
|
|
49
|
+
"jwksKeyId": args.jwksKeyId,
|
|
50
|
+
"repository": args.repository,
|
|
51
|
+
"unsignedSteps": args.unsignedSteps,
|
|
52
|
+
}, opts);
|
|
53
|
+
}
|
|
54
|
+
exports.getSignedSteps = getSignedSteps;
|
|
55
|
+
/**
|
|
56
|
+
* Use this data source to sign pipeline steps with a JWKS key. You will need to have
|
|
57
|
+
* the corresponding verification key present on the agents that run this the steps in
|
|
58
|
+
* this pipeline. You can then use these steps in a `buildkite.Pipeline.Pipeline` resource.
|
|
59
|
+
*
|
|
60
|
+
* See [RFC 7517](https://datatracker.ietf.org/doc/html/rfc7517) for more information
|
|
61
|
+
* about the JWKS format.
|
|
62
|
+
*
|
|
63
|
+
* See the Buildkite [documentation](https://buildkite.com/docs/agent/v3/signed_pipelines)
|
|
64
|
+
* for more info about signed pipelines.
|
|
65
|
+
*
|
|
66
|
+
* ## Example Usage
|
|
67
|
+
*
|
|
68
|
+
* <!--Start PulumiCodeChooser -->
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
71
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
72
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
73
|
+
*
|
|
74
|
+
* const repository = "git@github.com:my-org/my-repo.git";
|
|
75
|
+
* const my-steps = buildkite.Pipeline.getSignedSteps({
|
|
76
|
+
* repository: repository,
|
|
77
|
+
* jwksFile: "/path/to/my/jwks.json",
|
|
78
|
+
* jwksKeyId: "my-key",
|
|
79
|
+
* unsignedSteps: `steps:
|
|
80
|
+
* - label: ":pipeline:"
|
|
81
|
+
* command: buildkite-agent pipeline upload
|
|
82
|
+
* `,
|
|
83
|
+
* });
|
|
84
|
+
* const my_pipeline = new buildkite.pipeline.Pipeline("my-pipeline", {
|
|
85
|
+
* repository: repository,
|
|
86
|
+
* steps: my_steps.then(my_steps => my_steps.steps),
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
* <!--End PulumiCodeChooser -->
|
|
90
|
+
*/
|
|
91
|
+
function getSignedStepsOutput(args, opts) {
|
|
92
|
+
return pulumi.output(args).apply((a) => getSignedSteps(a, opts));
|
|
93
|
+
}
|
|
94
|
+
exports.getSignedStepsOutput = getSignedStepsOutput;
|
|
95
|
+
//# sourceMappingURL=getSignedSteps.js.map
|