@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 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
 
@@ -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
  }
@@ -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
@@ -18,6 +18,7 @@ async function dockerPrepare(opts, context) {
18
18
  , cwd: cwd
19
19
  , context: opts.context
20
20
  , network: opts.network
21
+ , quiet: opts.quiet
21
22
  })
22
23
 
23
24
  const vars = buildTemplateVars(opts, context)
package/lib/publish.js CHANGED
@@ -16,6 +16,7 @@ async function publish(opts, context) {
16
16
  , build_id: opts.build
17
17
  , cwd: cwd
18
18
  , context: opts.context
19
+ , quiet: opts.quiet
19
20
  })
20
21
 
21
22
  const vars = buildTemplateVars(opts, context)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codedependant/semantic-release-docker",
3
3
  "private": false,
4
- "version": "4.4.0",
4
+ "version": "4.5.0",
5
5
  "description": "docker package",
6
6
  "main": "index.js",
7
7
  "files": [