@codedependant/semantic-release-docker 6.0.0 → 6.1.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
+ # [6.1.0](https://github.com/esatterwhite/semantic-release-docker/compare/v6.0.0...v6.1.0) (2026-04-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * **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)
9
+
3
10
  # [6.0.0](https://github.com/esatterwhite/semantic-release-docker/compare/v5.1.1...v6.0.0) (2026-04-06)
4
11
 
5
12
 
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][]> | |
@@ -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
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.0",
5
5
  "description": "docker package",
6
6
  "main": "index.js",
7
7
  "files": [