feat(release): delegate docker target to tsdocker
This commit is contained in:
@@ -147,7 +147,7 @@ Targets decide what happens after that:
|
||||
| --- | --- |
|
||||
| `git` | Pushes the release commit and tags, often triggering remote CI release builds |
|
||||
| `npm` | Publishes the package to configured npm registries |
|
||||
| `docker` | Builds and pushes configured Docker images |
|
||||
| `docker` | Delegates container builds and pushes to `tsdocker` |
|
||||
|
||||
```bash
|
||||
# Preview the resolved release plan
|
||||
@@ -205,7 +205,7 @@ The standard buckets are `Breaking Changes`, `Features`, `Fixes`, `Documentation
|
||||
|
||||
## Configuration
|
||||
|
||||
All CLI config lives under `@git.zone/cli` in `.smartconfig.json`.
|
||||
CLI workflow config lives under `@git.zone/cli` in `.smartconfig.json`. Docker build and registry behavior lives under `@git.zone/tsdocker` and is used by the Docker release target.
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -237,11 +237,21 @@ All CLI config lives under `@git.zone/cli` in `.smartconfig.json`.
|
||||
"alreadyPublished": "success"
|
||||
},
|
||||
"docker": {
|
||||
"enabled": false,
|
||||
"images": []
|
||||
"enabled": true,
|
||||
"engine": "tsdocker",
|
||||
"patterns": [],
|
||||
"cached": true,
|
||||
"parallel": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@git.zone/tsdocker": {
|
||||
"registries": ["registry.gitlab.com"],
|
||||
"registryRepoMap": {
|
||||
"registry.gitlab.com": "myorg/myproject"
|
||||
},
|
||||
"platforms": ["linux/amd64", "linux/arm64"]
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -252,6 +262,12 @@ NPM registries belong only here:
|
||||
@git.zone/cli.release.targets.npm.registries
|
||||
```
|
||||
|
||||
Docker registries belong only here and should be registry hosts without `http://` or `https://`:
|
||||
|
||||
```text
|
||||
@git.zone/tsdocker.registries
|
||||
```
|
||||
|
||||
Useful config commands:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user