@brutalsystems/dray 0.1.0 → 0.1.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/package.json +25 -8
- package/src/primitives/docker.js +1 -0
package/package.json
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brutalsystems/dray",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Convention-driven multi-repo deploy orchestrator (forge for shipping)",
|
|
5
|
-
"bin": {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
5
|
+
"bin": {
|
|
6
|
+
"dray": "bin/dray.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin",
|
|
10
|
+
"src",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "node --test"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
10
22
|
"license": "UNLICENSED",
|
|
11
|
-
"repository": {
|
|
12
|
-
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/BrutalSystems/dray.git"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"commander": "^12.0.0"
|
|
29
|
+
}
|
|
13
30
|
}
|
package/src/primitives/docker.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
let _run = require('./exec').run; function _withRun(fn) { _run = fn; }
|
|
2
2
|
function buildImage({ ecrUri, sha, dockerfile, context, platform, cwd, dryRun, buildArgs = [] }) {
|
|
3
3
|
const args = ['buildx', 'build', '--platform', platform, '-f', dockerfile, '-t', `${ecrUri}:${sha}`];
|
|
4
|
+
args.push('--build-arg', `GIT_SHA=${sha}`);
|
|
4
5
|
for (const a of buildArgs) args.push('--build-arg', a);
|
|
5
6
|
args.push('--load', context);
|
|
6
7
|
return _run('docker', args, { cwd, dryRun });
|