@codedependant/semantic-release-docker 6.0.0 → 6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Semantic Release Docker
2
2
 
3
+ ## [6.1.1](https://github.com/esatterwhite/semantic-release-docker/compare/v6.1.0...v6.1.1) (2026-04-07)
4
+
5
+
6
+ ### Chores
7
+
8
+ * **dep-dev**: eslint-config-logdna@8.0.1 [5e65753](https://github.com/esatterwhite/semantic-release-docker/commit/5e657535a4cb44d83150847f028a0174b3023059) - Eric Satterwhite
9
+ * **dep-dev**: tap@21.6.3 [d964fa1](https://github.com/esatterwhite/semantic-release-docker/commit/d964fa1ae8b404e1ef06d59c0966fdc3bd07c139) - Eric Satterwhite
10
+ * **deps**: debug@4.4.3 [4cead0d](https://github.com/esatterwhite/semantic-release-docker/commit/4cead0d1aab0609bb4b71d86899bcc908cc894cc) - Eric Satterwhite
11
+ * **dep**: semver@7.7.4 [8766a8c](https://github.com/esatterwhite/semantic-release-docker/commit/8766a8c04c8b8848a3c87a9824b9ed81d62bea03) - Eric Satterwhite
12
+ * **deps**: execa@9.6.1 [0ca2618](https://github.com/esatterwhite/semantic-release-docker/commit/0ca2618e8e7ca81b2439bd66d134ecf3fd0b7e52) - Eric Satterwhite
13
+ * **deps**: handlebars@4.7.9 [2ad82f0](https://github.com/esatterwhite/semantic-release-docker/commit/2ad82f0c077fdd6ef7dbcb4aa1806b726f8d6ed1) - Eric Satterwhite
14
+ * **deps**: semantic-release/error@4.0.0 [afa593b](https://github.com/esatterwhite/semantic-release-docker/commit/afa593bf6d777dccc4eba2d9c0b8f0578ede9b0c) - Eric Satterwhite
15
+
16
+ # [6.1.0](https://github.com/esatterwhite/semantic-release-docker/compare/v6.0.0...v6.1.0) (2026-04-06)
17
+
18
+
19
+ ### Features
20
+
21
+ * **image**: allow the network flag to be omitted [3beac6c](https://github.com/esatterwhite/semantic-release-docker/commit/3beac6cbd20f4e5c52129ddba3271ab31555073e) - Eric Satterwhite, closes: [#63](https://github.com/esatterwhite/semantic-release-docker/issues/63)
22
+
3
23
  # [6.0.0](https://github.com/esatterwhite/semantic-release-docker/compare/v5.1.1...v6.0.0) (2026-04-06)
4
24
 
5
25
 
package/README.md CHANGED
@@ -55,7 +55,7 @@ omitted, it is assumed the docker daemon is already authenticated with the targe
55
55
  | `dockerArgs` | _Optional_. Include additional values for docker's `build-arg`. Supports templating | [Object][] | |
56
56
  | `dockerPublish` | _Optional_. Automatically push image tags during the publish phase. | [Boolean][] | `true` |
57
57
  | `dockerVerifyCmd` | _Optional_. If specified, during the verify stage, the specified command will execute in a container of the build image. If the command errors, the release will fail. | [String][] | `false` |
58
- | `dockerNetwork` | _Optional_. Specify the Docker network to use while the image is building. | [String][] | `default` |
58
+ | `dockerNetwork` | _Optional_. Specify the Docker network to use while the image is building. Setting this value to `null` explicitly will omit the network flag from build commands | [String][] | `default` |
59
59
  | `dockerAutoClean` | _Optional_. If set to true | [Boolean][] | `true` |
60
60
  | `dockerBuildFlags` | _Optional_. An object containing additional flags to the `docker build` command. Values can be strings or an array of strings | [Object][] | `{}` |
61
61
  | `dockerBuildCacheFrom` | _Optional_. A list of external cache sources. See [--cache-from][] | [String][] | [Array][]<[String][]> | |
package/index.js CHANGED
@@ -19,14 +19,15 @@ module.exports = {
19
19
  , verifyConditions
20
20
  }
21
21
 
22
- /* istanbul ignore next */
22
+ /* c8 ignore start */
23
23
  async function fail(config, context) {
24
24
  const opts = await buildConfig(null, config, context)
25
25
  const image = IMAGES.get(opts.build) || docker.Image.from(opts, context)
26
- context.image = image
26
+ context.image = image // eslint-disable-line require-atomic-updates
27
27
  IMAGES.set(opts.build, image)
28
28
  return dockerFail(opts, context)
29
29
  }
30
+ /* c8 ignore start */
30
31
 
31
32
  async function prepare(config, context) {
32
33
  const opts = await buildConfig(null, config, context)
@@ -38,7 +39,7 @@ async function prepare(config, context) {
38
39
  async function publish(config, context) {
39
40
  const opts = await buildConfig(null, config, context)
40
41
  const image = IMAGES.get(opts.build) || docker.Image.from(opts, context)
41
- context.image = image
42
+ context.image = image // eslint-disable-line require-atomic-updates
42
43
  IMAGES.set(opts.build, image)
43
44
  return dockerPublish(opts, context)
44
45
  }
@@ -46,7 +47,7 @@ async function publish(config, context) {
46
47
  async function success(config, context) {
47
48
  const opts = await buildConfig(null, config, context)
48
49
  const image = IMAGES.get(opts.build) || docker.Image.from(opts, context)
49
- context.image = image
50
+ context.image = image // eslint-disable-line require-atomic-updates
50
51
  IMAGES.set(opts.build, image)
51
52
  return dockerSuccess(opts, context)
52
53
  }
@@ -54,7 +55,7 @@ async function success(config, context) {
54
55
  async function verifyConditions(config, context) {
55
56
  const opts = await buildConfig(null, config, context)
56
57
  const image = IMAGES.get(opts.build) || docker.Image.from(opts, context)
57
- context.image = image
58
+ context.image = image // eslint-disable-line require-atomic-updates
58
59
  IMAGES.set(opts.build, image)
59
60
  return dockerVerify(opts, context)
60
61
  }
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
+ const path = require('node:path')
3
4
  const hash = require('object-hash')
4
- const path = require('path')
5
5
  const readPkg = require('./read-pkg.js')
6
6
  const object = require('./lang/object/index.js')
7
7
  const array = require('./lang/array/index.js')
@@ -88,7 +88,9 @@ async function buildConfig(build_id, config, context) {
88
88
  const parsed = parsePkgName(pkg.name)
89
89
  name = parsed.name
90
90
  scope = parsed.scope
91
- } catch (_) {}
91
+ } catch {
92
+ // nothing to do here
93
+ }
92
94
 
93
95
  const project = object.has(config, 'dockerProject') ? config.dockerProject : scope
94
96
  const root = object.get(context, 'options.root')
@@ -3,7 +3,7 @@
3
3
  const os = require('os')
4
4
  const path = require('path')
5
5
  const crypto = require('crypto')
6
- const execa = require('execa')
6
+ const {execa} = require('execa')
7
7
  const buildTemplateVars = require('../build-template-vars.js')
8
8
  const array = require('../lang/array/index.js')
9
9
  const string = require('../lang/string/index.js')
@@ -180,9 +180,10 @@ class Image {
180
180
  : this.docker_cmd
181
181
  }
182
182
  get docker_cmd() {
183
+ const network = this.network
183
184
  return [
184
185
  'build'
185
- , `--network=${this.network}`
186
+ , network ? `--network=${this.network}` : null
186
187
  , '--tag'
187
188
  , this.name
188
189
  , ...this.flags
@@ -2,4 +2,3 @@
2
2
 
3
3
  module.exports = require('../../lang/array/to-array.js')
4
4
 
5
-
package/lib/verify.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict'
2
2
 
3
3
  const {promises: fs} = require('fs')
4
- const execa = require('execa')
4
+ const {execa} = require('execa')
5
5
  const debug = require('debug')('semantic-release:semantic-release-docker:verify')
6
- const SemanticError = require('@semantic-release/error')
6
+ const {default: SemanticError} = require('@semantic-release/error')
7
7
  const prepare = require('./prepare.js')
8
8
  const docker = require('./docker/index.js')
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codedependant/semantic-release-docker",
3
3
  "private": false,
4
- "version": "6.0.0",
4
+ "version": "6.1.1",
5
5
  "description": "docker package",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -40,15 +40,10 @@
40
40
  "url": "git+ssh://git@github.com/esatterwhite/semantic-release-docker.git"
41
41
  },
42
42
  "tap": {
43
- "ts": false,
44
- "jsx": false,
45
43
  "timeout": 60,
46
44
  "browser": false,
47
- "check-coverage": true,
48
- "lines": 95,
49
- "branches": 95,
50
- "statements": 95,
51
- "functions": 95,
45
+ "show-full-coverage": true,
46
+ "output-file": ".tap-output",
52
47
  "files": [
53
48
  "test/unit",
54
49
  "test/integration"
@@ -60,30 +55,27 @@
60
55
  "json-summary",
61
56
  "html"
62
57
  ],
63
- "nyc-arg": [
64
- "--exclude=coverage/",
65
- "--exclude=test/",
66
- "--exclude=.eslintrc.js",
67
- "--exclude=release.config.js",
68
- "--all"
69
- ]
58
+ "statements": 95,
59
+ "branches": 95,
60
+ "lines": 95,
61
+ "functions": 95
70
62
  },
71
63
  "devDependencies": {
72
64
  "@codedependant/release-config-core": "^1.1.1",
73
65
  "@semantic-release/changelog": "^6.0.3",
74
- "eslint": "^8.5.0",
75
- "eslint-config-codedependant": "^3.0.0",
66
+ "eslint": "^10.2.0",
67
+ "eslint-config-logdna": "^8.0.1",
76
68
  "semantic-release": "^25.0.3",
77
69
  "sinon": "^9.0.2",
78
70
  "stream-buffers": "^3.0.3",
79
- "tap": "^16.0.0"
71
+ "tap": "^21.6.3"
80
72
  },
81
73
  "dependencies": {
82
74
  "@actions/core": "^3.0.0",
83
- "@semantic-release/error": "^3.0.0",
84
- "debug": "^4.1.1",
85
- "execa": "^4.0.2",
86
- "handlebars": "^4.7.7",
75
+ "@semantic-release/error": "^4.0.0",
76
+ "debug": "^4.4.3",
77
+ "execa": "^9.6.1",
78
+ "handlebars": "^4.7.9",
87
79
  "object-hash": "^3.0.0",
88
80
  "semver": "^7.3.2"
89
81
  }