@codedependant/semantic-release-docker 6.1.0 → 7.0.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 +25 -0
- package/index.js +6 -5
- package/lib/build-config.js +4 -2
- package/lib/docker/image.js +2 -1
- package/lib/handlebars/helpers/split.js +0 -1
- package/lib/verify.js +2 -2
- package/package.json +14 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Semantic Release Docker
|
|
2
2
|
|
|
3
|
+
# [7.0.0](https://github.com/esatterwhite/semantic-release-docker/compare/v6.1.1...v7.0.0) (2026-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **docker**: specify an output type during buildx dry run [6508e76](https://github.com/esatterwhite/semantic-release-docker/commit/6508e76483347c51cf3a32b40e8fd3ab2fabdc20) - Eric Satterwhite
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### **BREAKING CHANGES**
|
|
12
|
+
|
|
13
|
+
* **docker:** buildx dry-run will specifiy --output type=cacheonly
|
|
14
|
+
|
|
15
|
+
## [6.1.1](https://github.com/esatterwhite/semantic-release-docker/compare/v6.1.0...v6.1.1) (2026-04-07)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **dep-dev**: eslint-config-logdna@8.0.1 [5e65753](https://github.com/esatterwhite/semantic-release-docker/commit/5e657535a4cb44d83150847f028a0174b3023059) - Eric Satterwhite
|
|
21
|
+
* **dep-dev**: tap@21.6.3 [d964fa1](https://github.com/esatterwhite/semantic-release-docker/commit/d964fa1ae8b404e1ef06d59c0966fdc3bd07c139) - Eric Satterwhite
|
|
22
|
+
* **deps**: debug@4.4.3 [4cead0d](https://github.com/esatterwhite/semantic-release-docker/commit/4cead0d1aab0609bb4b71d86899bcc908cc894cc) - Eric Satterwhite
|
|
23
|
+
* **dep**: semver@7.7.4 [8766a8c](https://github.com/esatterwhite/semantic-release-docker/commit/8766a8c04c8b8848a3c87a9824b9ed81d62bea03) - Eric Satterwhite
|
|
24
|
+
* **deps**: execa@9.6.1 [0ca2618](https://github.com/esatterwhite/semantic-release-docker/commit/0ca2618e8e7ca81b2439bd66d134ecf3fd0b7e52) - Eric Satterwhite
|
|
25
|
+
* **deps**: handlebars@4.7.9 [2ad82f0](https://github.com/esatterwhite/semantic-release-docker/commit/2ad82f0c077fdd6ef7dbcb4aa1806b726f8d6ed1) - Eric Satterwhite
|
|
26
|
+
* **deps**: semantic-release/error@4.0.0 [afa593b](https://github.com/esatterwhite/semantic-release-docker/commit/afa593bf6d777dccc4eba2d9c0b8f0578ede9b0c) - Eric Satterwhite
|
|
27
|
+
|
|
3
28
|
# [6.1.0](https://github.com/esatterwhite/semantic-release-docker/compare/v6.0.0...v6.1.0) (2026-04-06)
|
|
4
29
|
|
|
5
30
|
|
package/index.js
CHANGED
|
@@ -19,14 +19,15 @@ module.exports = {
|
|
|
19
19
|
, verifyConditions
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/*
|
|
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
|
}
|
package/lib/build-config.js
CHANGED
|
@@ -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')
|
package/lib/docker/image.js
CHANGED
|
@@ -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')
|
|
@@ -203,6 +203,7 @@ class Image {
|
|
|
203
203
|
this.flag('pull', null)
|
|
204
204
|
if (this.opts.dry_run || !this.opts.publish) {
|
|
205
205
|
this.opts.flags.delete('push')
|
|
206
|
+
this.flag('output', 'type=cacheonly')
|
|
206
207
|
} else {
|
|
207
208
|
this.flag('push', null)
|
|
208
209
|
}
|
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": "
|
|
4
|
+
"version": "7.0.0",
|
|
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
|
-
"
|
|
48
|
-
"
|
|
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
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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": "^
|
|
75
|
-
"eslint-config-
|
|
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": "^
|
|
71
|
+
"tap": "^21.6.3"
|
|
80
72
|
},
|
|
81
73
|
"dependencies": {
|
|
82
74
|
"@actions/core": "^3.0.0",
|
|
83
|
-
"@semantic-release/error": "^
|
|
84
|
-
"debug": "^4.
|
|
85
|
-
"execa": "^
|
|
86
|
-
"handlebars": "^4.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
|
}
|