@biznetgio/neo-app 0.4.9 → 0.4.10
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/package.json +1 -1
- package/src/deploySource.js +7 -1
package/package.json
CHANGED
package/src/deploySource.js
CHANGED
|
@@ -200,7 +200,13 @@ export async function deploySource(api, { projectId, src, name, port, build, env
|
|
|
200
200
|
if (buildType && app.buildType && app.buildType !== buildType) patch.buildType = buildType;
|
|
201
201
|
if (Object.keys(patch).length) {
|
|
202
202
|
plan.push(`update "${svc}": ${Object.keys(patch).join(', ')}`);
|
|
203
|
-
if (!dryRun) {
|
|
203
|
+
if (!dryRun) {
|
|
204
|
+
const upd = await api.put(`/api/v1/apps/${app.id}`, patch);
|
|
205
|
+
// If the source-config update needs approval, STOP — deploying now would ship
|
|
206
|
+
// the OLD config while the change is still pending (JNG #96 re-validation).
|
|
207
|
+
if (pending(upd)) return { pending: true, approvalId: upd.data.approvalId };
|
|
208
|
+
log(`updated source config (${Object.keys(patch).join(', ')})`);
|
|
209
|
+
}
|
|
204
210
|
} else {
|
|
205
211
|
log(`service ${svc} exists — redeploying`);
|
|
206
212
|
}
|