feat(cli): support cached builds during push
This commit is contained in:
+29
-5
@@ -4,6 +4,7 @@
|
|||||||
"cli": true
|
"cli": true
|
||||||
},
|
},
|
||||||
"@git.zone/cli": {
|
"@git.zone/cli": {
|
||||||
|
"schemaVersion": 2,
|
||||||
"projectType": "npm",
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
@@ -14,11 +15,34 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"accessLevel": "public",
|
"confirmation": "prompt",
|
||||||
"registries": [
|
"preflight": {
|
||||||
"https://verdaccio.lossless.digital",
|
"requireCleanTree": true,
|
||||||
"https://registry.npmjs.org"
|
"test": false,
|
||||||
]
|
"build": true
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"git": {
|
||||||
|
"enabled": true,
|
||||||
|
"remote": "origin",
|
||||||
|
"pushBranch": true,
|
||||||
|
"pushTags": true
|
||||||
|
},
|
||||||
|
"npm": {
|
||||||
|
"enabled": true,
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public",
|
||||||
|
"alreadyPublished": "success"
|
||||||
|
},
|
||||||
|
"docker": {
|
||||||
|
"enabled": false,
|
||||||
|
"engine": "tsdocker",
|
||||||
|
"patterns": []
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@ship.zone/szci": {
|
"@ship.zone/szci": {
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Pending
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Support cached builds during `tsdocker push`.
|
||||||
|
- Apply `--cached` to the push command's build phase before registry publishing.
|
||||||
|
- Migrate the project release config to schema v2 targets for the current release workflow.
|
||||||
|
|
||||||
## 2026-05-09 - 2.2.8 - fix(package)
|
## 2026-05-09 - 2.2.8 - fix(package)
|
||||||
normalize bin entry path for the tsdocker CLI
|
normalize bin entry path for the tsdocker CLI
|
||||||
|
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ tsdocker push --no-build Dockerfile_api Dockerfile_web
|
|||||||
| `<patterns>` | Positional Dockerfile name patterns to select which images to push |
|
| `<patterns>` | Positional Dockerfile name patterns to select which images to push |
|
||||||
| `--registry=<url>` | Push to a single specific registry instead of all configured |
|
| `--registry=<url>` | Push to a single specific registry instead of all configured |
|
||||||
| `--no-build` | Skip the build phase; only push existing images from local registry |
|
| `--no-build` | Skip the build phase; only push existing images from local registry |
|
||||||
|
| `--cached` | Skip unchanged Dockerfiles during the build phase |
|
||||||
|
|
||||||
### Config Subcommands
|
### Config Subcommands
|
||||||
|
|
||||||
|
|||||||
@@ -174,6 +174,9 @@ export let run = () => {
|
|||||||
buildOptions.noCache = true;
|
buildOptions.noCache = true;
|
||||||
}
|
}
|
||||||
buildOptions.pull = argvArg.pull !== false;
|
buildOptions.pull = argvArg.pull !== false;
|
||||||
|
if (argvArg.cached) {
|
||||||
|
buildOptions.cached = true;
|
||||||
|
}
|
||||||
if (argvArg.verbose) {
|
if (argvArg.verbose) {
|
||||||
buildOptions.verbose = true;
|
buildOptions.verbose = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user