aws-delivlib 13.2.0 → 13.3.1
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/cdk.out/{asset.ff9251e1c9991e0788c269b3f4daac2ef4701a3e98de0bb0a1aedae2bb35a514 → asset.d81bf2d4c389ecd69472cf4b27599e1ffbe0c1543104f45d035834e863f64ca7}/index.js +6 -0
- package/cdk.out/delivlib-test.assets.json +5 -5
- package/cdk.out/delivlib-test.template.json +1 -1
- package/cdk.out/manifest.json +43 -43
- package/cdk.out/tree.json +1 -1
- package/lib/__tests__/publishing.test.d.ts +1 -0
- package/lib/__tests__/publishing.test.js +53 -0
- package/lib/__tests__/registry-sync/mirror-source.test.js +32 -7
- package/lib/change-control-lambda/time-window.js +7 -1
- package/lib/change-control-lambda/time-window.ts +7 -0
- package/lib/publishing.d.ts +16 -0
- package/lib/publishing.js +5 -3
- package/lib/publishing.ts +20 -2
- package/lib/registry-sync/mirror-source.js +9 -5
- package/lib/registry-sync/mirror-source.ts +8 -4
- package/package.json +1 -1
|
@@ -115,7 +115,7 @@ export abstract class MirrorSource {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
public bind(options: MirrorSourceBindOptions) {
|
|
118
|
-
const asset = new s3Assets.Asset(options.scope, `BuildContext${this.directory}`, { path: this.directory! });
|
|
118
|
+
const asset = new s3Assets.Asset(options.scope, `BuildContext${this.directory}${JSON.stringify(opts.buildArgs ?? {})}`, { path: this.directory! });
|
|
119
119
|
if (options.syncJob) {
|
|
120
120
|
asset.grantRead(options.syncJob);
|
|
121
121
|
}
|
|
@@ -128,11 +128,15 @@ export abstract class MirrorSource {
|
|
|
128
128
|
Object.entries(opts.buildArgs).forEach(([k, v]) => cmdFlags.push('--build-arg', `${k}=${v}`));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
const zipFile = `${this.repositoryName}.zip`;
|
|
132
|
+
const tmpDir = this.repositoryName;
|
|
133
|
+
|
|
131
134
|
return {
|
|
132
135
|
commands: [
|
|
133
|
-
`
|
|
134
|
-
`
|
|
135
|
-
`
|
|
136
|
+
`rm -rf ${zipFile} ${tmpDir}`,
|
|
137
|
+
`aws s3 cp ${asset.s3ObjectUrl} ${zipFile}`,
|
|
138
|
+
`unzip ${zipFile} -d ${tmpDir}`,
|
|
139
|
+
`docker build ${cmdFlags.join(' ')} ${tmpDir}`,
|
|
136
140
|
],
|
|
137
141
|
repositoryName: this.repositoryName,
|
|
138
142
|
tag: this.tag,
|