@codedependant/semantic-release-docker 5.0.1 → 5.0.3
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 +14 -0
- package/lib/build-config.js +1 -1
- package/lib/docker/image.js +1 -1
- package/lib/verify.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Semantic Release Docker
|
|
2
2
|
|
|
3
|
+
## [5.0.3](https://github.com/esatterwhite/semantic-release-docker/compare/v5.0.2...v5.0.3) (2024-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **verify**: fix logic around the conditional prepare step [ae8335a](https://github.com/esatterwhite/semantic-release-docker/commit/ae8335a654bf844c3186a7d24ec068f03ced3fe5) - Eric Satterwhite
|
|
9
|
+
|
|
10
|
+
## [5.0.2](https://github.com/esatterwhite/semantic-release-docker/compare/v5.0.1...v5.0.2) (2024-03-22)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **config**: propgate dry run option to docker image [1438ded](https://github.com/esatterwhite/semantic-release-docker/commit/1438dedae17c45eeb88f17b6108d343de283f10f) - Eric Satterwhite
|
|
16
|
+
|
|
3
17
|
## [5.0.1](https://github.com/esatterwhite/semantic-release-docker/compare/v5.0.0...v5.0.1) (2024-03-22)
|
|
4
18
|
|
|
5
19
|
|
package/lib/build-config.js
CHANGED
|
@@ -58,7 +58,7 @@ async function buildConfig(build_id, config, context) {
|
|
|
58
58
|
, publish
|
|
59
59
|
, tags: array.toArray(tags)
|
|
60
60
|
, verifycmd
|
|
61
|
-
, dry_run
|
|
61
|
+
, dry_run: !!typeCast(dry_run || context.dryRun)
|
|
62
62
|
, args: {
|
|
63
63
|
SRC_DIRECTORY: path.basename(context.cwd)
|
|
64
64
|
, TARGET_PATH: target
|
package/lib/docker/image.js
CHANGED
|
@@ -87,7 +87,7 @@ class Image {
|
|
|
87
87
|
, quiet: opts.quiet
|
|
88
88
|
, publish: opts.publish
|
|
89
89
|
, platform: opts.platform
|
|
90
|
-
, dry_run: !!opts.
|
|
90
|
+
, dry_run: !!opts.dry_run
|
|
91
91
|
})
|
|
92
92
|
for (const [key, value] of Object.entries(opts.args)) {
|
|
93
93
|
image.arg(key, string.template(value)(vars))
|
package/lib/verify.js
CHANGED
|
@@ -48,7 +48,8 @@ async function verify(opts, context) {
|
|
|
48
48
|
await doLogin({...opts, USERNAME, PASSWORD}, context)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
if (!opts.verifycmd
|
|
51
|
+
if (!opts.verifycmd) return true
|
|
52
|
+
if (!opts.dry_run) return true
|
|
52
53
|
|
|
53
54
|
const img = await prepare(opts, context)
|
|
54
55
|
const output = await img.run(opts.verifycmd)
|