@codedependant/semantic-release-docker 4.4.0 → 4.5.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/CHANGELOG.md +7 -0
- package/lib/build-config.js +2 -0
- package/lib/docker/image.js +4 -2
- package/lib/prepare.js +1 -0
- package/lib/publish.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Docker
|
|
2
2
|
|
|
3
|
+
# [4.5.0](https://github.com/esatterwhite/semantic-release-docker/compare/v4.4.0...v4.5.0) (2023-10-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **config**: allow --quiet flag to be configurable [7abc74e](https://github.com/esatterwhite/semantic-release-docker/commit/7abc74ecdd96baa8d27ecb177defc137a64b482f) - Eric Satterwhite, closes: [#40](https://github.com/esatterwhite/semantic-release-docker/issues/40)
|
|
9
|
+
|
|
3
10
|
# [4.4.0](https://github.com/esatterwhite/semantic-release-docker/compare/v4.3.0...v4.4.0) (2023-07-11)
|
|
4
11
|
|
|
5
12
|
|
package/lib/build-config.js
CHANGED
|
@@ -26,6 +26,7 @@ async function buildConfig(build_id, config, context) {
|
|
|
26
26
|
, dockerVerifyCmd: verifycmd = null
|
|
27
27
|
, dockerNetwork: network = 'default'
|
|
28
28
|
, dockerAutoClean: clean = true
|
|
29
|
+
, dockerBuildQuiet: quiet = true
|
|
29
30
|
} = config
|
|
30
31
|
|
|
31
32
|
let name = null
|
|
@@ -72,6 +73,7 @@ async function buildConfig(build_id, config, context) {
|
|
|
72
73
|
, env: context.env
|
|
73
74
|
, context: dockerContext
|
|
74
75
|
, network: network
|
|
76
|
+
, quiet: typeCast(quiet) === true
|
|
75
77
|
, clean: typeCast(clean) === true
|
|
76
78
|
}
|
|
77
79
|
}
|
package/lib/docker/image.js
CHANGED
|
@@ -17,6 +17,7 @@ class Image {
|
|
|
17
17
|
, cwd = process.cwd()
|
|
18
18
|
, context = '.'
|
|
19
19
|
, network = 'default'
|
|
20
|
+
, quiet = true
|
|
20
21
|
} = opts || {}
|
|
21
22
|
|
|
22
23
|
if (!name || typeof name !== 'string') {
|
|
@@ -37,6 +38,8 @@ class Image {
|
|
|
37
38
|
, project: project
|
|
38
39
|
, registry: registry
|
|
39
40
|
}
|
|
41
|
+
|
|
42
|
+
if (quiet) this.flag('quiet', null)
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
get id() {
|
|
@@ -129,14 +132,13 @@ class Image {
|
|
|
129
132
|
return [
|
|
130
133
|
'build'
|
|
131
134
|
, `--network=${this.network}`
|
|
132
|
-
, '--quiet'
|
|
133
135
|
, '--tag'
|
|
134
136
|
, this.name
|
|
135
137
|
, ...this.flags
|
|
136
138
|
, '-f'
|
|
137
139
|
, this.dockerfile
|
|
138
140
|
, this.context
|
|
139
|
-
]
|
|
141
|
+
].filter(Boolean)
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
async run(cmd) {
|
package/lib/prepare.js
CHANGED
package/lib/publish.js
CHANGED