@underpostnet/underpost 2.8.855 → 2.8.857
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.
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
echo "Starting remote release deploy"
|
|
31
31
|
cd /home/dd/engine
|
|
32
32
|
npm install -g underpost
|
|
33
|
-
underpost set GITHUB_TOKEN ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
underpost config set GITHUB_TOKEN ${{ secrets.GITHUB_TOKEN }}
|
|
34
34
|
node bin run --dev pull
|
|
35
35
|
underpost run secret
|
|
36
36
|
underpost run release-deploy
|
package/README.md
CHANGED
|
@@ -19,10 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
<!-- badges -->
|
|
23
25
|
|
|
24
26
|
|
|
25
|
-
[](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [](https://www.npmjs.com/package/underpost) [](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [](https://www.npmjs.com/package/underpost) [](https://socket.dev/npm/package/underpost/overview/2.8.857) [](https://coveralls.io/github/underpostnet/engine?branch=master) [](https://www.npmjs.org/package/underpost) [](https://www.npmjs.com/package/underpost)
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
<!-- end-badges -->
|
|
@@ -30,6 +32,8 @@
|
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
|
|
35
|
+
|
|
36
|
+
|
|
33
37
|
</div>
|
|
34
38
|
|
|
35
39
|
<div align="center">
|
|
@@ -74,7 +78,7 @@ Run dev client server
|
|
|
74
78
|
npm run dev
|
|
75
79
|
```
|
|
76
80
|
<!-- -->
|
|
77
|
-
## underpost ci/cd cli v2.8.
|
|
81
|
+
## underpost ci/cd cli v2.8.857
|
|
78
82
|
|
|
79
83
|
### Usage: `underpost [options] [command]`
|
|
80
84
|
```
|
package/cli.md
CHANGED
|
@@ -17,7 +17,7 @@ spec:
|
|
|
17
17
|
spec:
|
|
18
18
|
containers:
|
|
19
19
|
- name: dd-default-development-blue
|
|
20
|
-
image: localhost/rockylinux9-underpost:v2.8.
|
|
20
|
+
image: localhost/rockylinux9-underpost:v2.8.857
|
|
21
21
|
# resources:
|
|
22
22
|
# requests:
|
|
23
23
|
# memory: "124Ki"
|
|
@@ -100,7 +100,7 @@ spec:
|
|
|
100
100
|
spec:
|
|
101
101
|
containers:
|
|
102
102
|
- name: dd-default-development-green
|
|
103
|
-
image: localhost/rockylinux9-underpost:v2.8.
|
|
103
|
+
image: localhost/rockylinux9-underpost:v2.8.857
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "module",
|
|
3
3
|
"main": "src/index.js",
|
|
4
4
|
"name": "@underpostnet/underpost",
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.857",
|
|
6
6
|
"description": "pwa api rest template",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
|
package/src/cli/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { daemonProcess, getTerminalPid, openTerminal, pbcopy, shellCd, shellExec } from '../server/process.js';
|
|
2
2
|
import read from 'read';
|
|
3
3
|
import { getNpmRootPath } from '../server/conf.js';
|
|
4
|
-
import { loggerFactory } from '../server/logger.js';
|
|
4
|
+
import { actionInitLog, loggerFactory } from '../server/logger.js';
|
|
5
5
|
import UnderpostTest from './test.js';
|
|
6
6
|
import fs from 'fs-extra';
|
|
7
7
|
import { range, setPad, timer } from '../client/components/core/CommonJs.js';
|
|
@@ -109,6 +109,8 @@ class UnderpostRun {
|
|
|
109
109
|
shellExec(`underpost pull engine-private underpostnet/engine-private`, { silent: true });
|
|
110
110
|
},
|
|
111
111
|
'release-deploy': (path, options = UnderpostRun.DEFAULT_OPTION) => {
|
|
112
|
+
actionInitLog();
|
|
113
|
+
shellExec(`underpost --version`);
|
|
112
114
|
shellCd(`/home/dd/engine`);
|
|
113
115
|
for (const _deployId of fs.readFileSync(`./engine-private/deploy/dd.router`, 'utf8').split(',')) {
|
|
114
116
|
const deployId = _deployId.trim();
|
|
@@ -239,15 +241,19 @@ class UnderpostRun {
|
|
|
239
241
|
shellExec(`sudo kubectl rollout restart deployment/${deployId}-${env}-${targetTraffic}`);
|
|
240
242
|
|
|
241
243
|
let checkStatusIteration = 0;
|
|
242
|
-
|
|
244
|
+
const checkStatusIterationMsDelay = 1000;
|
|
245
|
+
const iteratorTag = `[${deployId}-${env}-${targetTraffic}]`;
|
|
246
|
+
logger.info('Deployment init', { deployId, env, targetTraffic, checkStatusIterationMsDelay });
|
|
243
247
|
|
|
244
248
|
while (!UnderpostDeploy.API.checkDeploymentReadyStatus(deployId, env, targetTraffic, ignorePods).ready) {
|
|
245
|
-
await timer(
|
|
249
|
+
await timer(checkStatusIterationMsDelay);
|
|
246
250
|
checkStatusIteration++;
|
|
247
|
-
logger.info(
|
|
251
|
+
logger.info(
|
|
252
|
+
`${iteratorTag} | Deployment in progress... | Delay number check iterations: ${checkStatusIteration}`,
|
|
253
|
+
);
|
|
248
254
|
}
|
|
249
255
|
|
|
250
|
-
logger.info(
|
|
256
|
+
logger.info(`${iteratorTag} | Deployment ready. | Total delay number check iterations: ${checkStatusIteration}`);
|
|
251
257
|
|
|
252
258
|
UnderpostRootEnv.API.set(`${deployId}-${env}-traffic`, targetTraffic);
|
|
253
259
|
|