@codedependant/semantic-release-docker 5.1.1 → 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 +21 -0
- package/README.md +1 -1
- package/lib/docker/image.js +2 -1
- package/lib/publish.js +1 -1
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
10
|
+
# [6.0.0](https://github.com/esatterwhite/semantic-release-docker/compare/v5.1.1...v6.0.0) (2026-04-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chores
|
|
14
|
+
|
|
15
|
+
* **ci**: update github workflow for recent version of semantic release [66bfaa4](https://github.com/esatterwhite/semantic-release-docker/commit/66bfaa4d2942f401b0cecab5ec15c3d5396b4606) - Eric Satterwhite
|
|
16
|
+
* **deps**: actions/core@3.0.0 [f24c6ba](https://github.com/esatterwhite/semantic-release-docker/commit/f24c6babf1d51824f16e2333d78142741ad3cefc) - Eric Satterwhite, closes: [#65](https://github.com/esatterwhite/semantic-release-docker/issues/65)
|
|
17
|
+
* **pkg**: fix start / stop scripts [1136737](https://github.com/esatterwhite/semantic-release-docker/commit/1136737172d0977f97541d7332642ebf03fbd647) - Eric Satterwhite
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### **BREAKING CHANGES**
|
|
21
|
+
|
|
22
|
+
* **ci:** minimum node versions >=20
|
|
23
|
+
|
|
3
24
|
## [5.1.1](https://github.com/esatterwhite/semantic-release-docker/compare/v5.1.0...v5.1.1) (2025-05-24)
|
|
4
25
|
|
|
5
26
|
|
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.
|
|
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/lib/docker/image.js
CHANGED
|
@@ -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/lib/publish.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const actions = require('@actions/core')
|
|
4
3
|
const docker = require('./docker/index.js')
|
|
5
4
|
|
|
6
5
|
module.exports = publish
|
|
7
6
|
|
|
8
7
|
async function publish(opts, context) {
|
|
8
|
+
const actions = await import('@actions/core')
|
|
9
9
|
const {image = docker.Image.from(opts, context)} = context
|
|
10
10
|
|
|
11
11
|
const sha = image.sha || opts.build_id
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codedependant/semantic-release-docker",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"description": "docker package",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -12,17 +12,20 @@
|
|
|
12
12
|
"package.json",
|
|
13
13
|
"index.js"
|
|
14
14
|
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20"
|
|
17
|
+
},
|
|
15
18
|
"scripts": {
|
|
16
|
-
"test": "docker
|
|
17
|
-
"start": "docker
|
|
18
|
-
"stop": "docker
|
|
19
|
+
"test": "docker compose -f compose/base.yml -f compose/test.yml up --exit-code-from semantic-release --force-recreate --remove-orphans --build",
|
|
20
|
+
"start": "docker compose -f compose/base.yml -f compose/dev.yml up --force-recreate --remove-orphans --build",
|
|
21
|
+
"stop": "docker compose -f compose/base.yml -f compose/dev.yml down",
|
|
19
22
|
"tap": "tap",
|
|
20
23
|
"lint": "eslint .",
|
|
21
24
|
"lint:fix": "npm run lint -- --fix",
|
|
22
25
|
"local": "env $(cat env/local.env)",
|
|
23
26
|
"pretap": "npm run lint",
|
|
24
|
-
"release": "semantic-release",
|
|
25
|
-
"release:dry": "
|
|
27
|
+
"release": "npx semantic-release",
|
|
28
|
+
"release:dry": "npm run release -- --no-ci --dry-run --branches=${BRANCH_NAME:-main}"
|
|
26
29
|
},
|
|
27
30
|
"keywords": [
|
|
28
31
|
"semantic-release"
|
|
@@ -66,19 +69,17 @@
|
|
|
66
69
|
]
|
|
67
70
|
},
|
|
68
71
|
"devDependencies": {
|
|
69
|
-
"@codedependant/release-config-
|
|
70
|
-
"@semantic-release/changelog": "^
|
|
71
|
-
"@semantic-release/git": "^9.0.0",
|
|
72
|
-
"@semantic-release/github": "^7.0.7",
|
|
72
|
+
"@codedependant/release-config-core": "^1.1.1",
|
|
73
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
73
74
|
"eslint": "^8.5.0",
|
|
74
75
|
"eslint-config-codedependant": "^3.0.0",
|
|
75
|
-
"semantic-release": "
|
|
76
|
+
"semantic-release": "^25.0.3",
|
|
76
77
|
"sinon": "^9.0.2",
|
|
77
78
|
"stream-buffers": "^3.0.3",
|
|
78
79
|
"tap": "^16.0.0"
|
|
79
80
|
},
|
|
80
81
|
"dependencies": {
|
|
81
|
-
"@actions/core": "^
|
|
82
|
+
"@actions/core": "^3.0.0",
|
|
82
83
|
"@semantic-release/error": "^3.0.0",
|
|
83
84
|
"debug": "^4.1.1",
|
|
84
85
|
"execa": "^4.0.2",
|