underpost 3.2.3 → 3.2.4
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/.github/workflows/publish.ci.yml +21 -9
- package/CHANGELOG.md +10 -0
- package/CLI-HELP.md +1 -1
- package/README.md +2 -2
- package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +2 -3
- package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +2 -3
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/manifests/deployment/dd-test-development/deployment.yaml +2 -2
- package/package.json +1 -1
- package/src/cli/run.js +4 -0
- package/src/index.js +1 -1
- package/src/server/cron.js +2 -3
|
@@ -3,17 +3,27 @@ on:
|
|
|
3
3
|
push:
|
|
4
4
|
tags:
|
|
5
5
|
- 'v*'
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
packages: write
|
|
9
|
+
id-token: write
|
|
6
10
|
jobs:
|
|
7
11
|
build-and-publish:
|
|
8
12
|
# prevents this action from running on forks
|
|
9
13
|
if: github.repository == 'underpostnet/pwa-microservices-template'
|
|
10
14
|
runs-on: ubuntu-latest
|
|
11
15
|
permissions:
|
|
12
|
-
contents:
|
|
16
|
+
contents: write
|
|
17
|
+
packages: write
|
|
13
18
|
id-token: write
|
|
14
19
|
steps:
|
|
15
20
|
- uses: actions/checkout@v6
|
|
16
21
|
|
|
22
|
+
- name: Install required packages
|
|
23
|
+
run: |
|
|
24
|
+
sudo apt-get update -y
|
|
25
|
+
sudo apt-get install -y sudo tar gzip bzip2 git curl
|
|
26
|
+
|
|
17
27
|
- uses: actions/setup-node@v6
|
|
18
28
|
with:
|
|
19
29
|
node-version: '24.x'
|
|
@@ -27,12 +37,21 @@ jobs:
|
|
|
27
37
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
28
38
|
run: npm publish --provenance --access public
|
|
29
39
|
|
|
40
|
+
- name: Dispatch release CD
|
|
41
|
+
run: |
|
|
42
|
+
curl -s -f -X POST \
|
|
43
|
+
-H "Accept: application/vnd.github.v3+json" \
|
|
44
|
+
-H "Authorization: token ${{ secrets.GIT_AUTH_TOKEN }}" \
|
|
45
|
+
"https://api.github.com/repos/underpostnet/pwa-microservices-template/actions/workflows/release.cd.yml/dispatches" \
|
|
46
|
+
-d '{"ref":"master"}'
|
|
47
|
+
|
|
30
48
|
build-and-publish-ghpkg:
|
|
31
49
|
# prevents this action from running on forks
|
|
32
50
|
if: github.repository == 'underpostnet/pwa-microservices-template-ghpkg'
|
|
33
51
|
runs-on: ubuntu-latest
|
|
34
52
|
permissions:
|
|
35
|
-
contents:
|
|
53
|
+
contents: write
|
|
54
|
+
packages: write
|
|
36
55
|
id-token: write
|
|
37
56
|
steps:
|
|
38
57
|
- uses: actions/checkout@v6
|
|
@@ -66,10 +85,3 @@ jobs:
|
|
|
66
85
|
npm publish
|
|
67
86
|
env:
|
|
68
87
|
NODE_AUTH_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }}
|
|
69
|
-
|
|
70
|
-
# Release deploy — triggers release.cd.yml after Docker build succeeds
|
|
71
|
-
deploy-release:
|
|
72
|
-
needs: build-and-publish
|
|
73
|
-
if: always() && needs.build-and-publish.result == 'success'
|
|
74
|
-
uses: ./.github/workflows/release.cd.yml
|
|
75
|
-
secrets: inherit
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
### cli-cron
|
|
6
6
|
|
|
7
|
+
- Update underpost container environment path for volume mount ([8fdfb5416](https://github.com/underpostnet/engine/commit/8fdfb54165f4ef7379fccbeb20e5c476320bc1f6))
|
|
8
|
+
|
|
9
|
+
### github-actions
|
|
10
|
+
|
|
11
|
+
- Add dispatch step for release CD in publish workflow ([8dc0e3ccd](https://github.com/underpostnet/engine/commit/8dc0e3ccd1a578f776edf215428d08640b44c3d1))
|
|
12
|
+
|
|
13
|
+
## New release v:3.2.3 (2026-04-15)
|
|
14
|
+
|
|
15
|
+
### cli-cron
|
|
16
|
+
|
|
7
17
|
- Remove is-inside-container dependency and implement isInsideContainer method in env module ([79d39ece0](https://github.com/underpostnet/engine/commit/79d39ece0db1f3acb65af22e3bc7f7c6a66487a9))
|
|
8
18
|
|
|
9
19
|
### github-actions
|
package/CLI-HELP.md
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<div align="center">
|
|
18
18
|
|
|
19
|
-
[](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml) [](https://www.npmjs.com/package/underpost) [](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml) [](https://www.npmjs.com/package/underpost) [](https://socket.dev/npm/package/underpost/overview/3.2.4) [](https://coveralls.io/github/underpostnet/engine?branch=master) [](https://www.npmjs.org/package/underpost) [](https://www.npmjs.com/package/underpost)
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
@@ -61,7 +61,7 @@ npm run dev
|
|
|
61
61
|
<a target="_top" href="https://www.nexodev.org/docs?cid=src">See Docs here.</a>
|
|
62
62
|
|
|
63
63
|
<!-- cli-index-start -->
|
|
64
|
-
## underpost ci/cd cli v3.2.
|
|
64
|
+
## underpost ci/cd cli v3.2.4
|
|
65
65
|
|
|
66
66
|
### Usage: `underpost [options] [command]`
|
|
67
67
|
```
|
|
@@ -23,7 +23,7 @@ spec:
|
|
|
23
23
|
spec:
|
|
24
24
|
containers:
|
|
25
25
|
- name: dd-cron-backup
|
|
26
|
-
image: underpost/underpost-engine:v3.2.
|
|
26
|
+
image: underpost/underpost-engine:v3.2.4
|
|
27
27
|
command:
|
|
28
28
|
- /bin/sh
|
|
29
29
|
- -c
|
|
@@ -35,9 +35,8 @@ spec:
|
|
|
35
35
|
volumeMounts:
|
|
36
36
|
- mountPath: /home/dd/engine
|
|
37
37
|
name: underpost-cron-container-volume
|
|
38
|
-
- mountPath: /usr/lib/node_modules/underpost
|
|
38
|
+
- mountPath: /usr/lib/node_modules/underpost
|
|
39
39
|
name: underpost-share-env
|
|
40
|
-
subPath: .env
|
|
41
40
|
volumes:
|
|
42
41
|
- hostPath:
|
|
43
42
|
path: /home/dd/engine
|
|
@@ -23,7 +23,7 @@ spec:
|
|
|
23
23
|
spec:
|
|
24
24
|
containers:
|
|
25
25
|
- name: dd-cron-dns
|
|
26
|
-
image: underpost/underpost-engine:v3.2.
|
|
26
|
+
image: underpost/underpost-engine:v3.2.4
|
|
27
27
|
command:
|
|
28
28
|
- /bin/sh
|
|
29
29
|
- -c
|
|
@@ -35,9 +35,8 @@ spec:
|
|
|
35
35
|
volumeMounts:
|
|
36
36
|
- mountPath: /home/dd/engine
|
|
37
37
|
name: underpost-cron-container-volume
|
|
38
|
-
- mountPath: /usr/lib/node_modules/underpost
|
|
38
|
+
- mountPath: /usr/lib/node_modules/underpost
|
|
39
39
|
name: underpost-share-env
|
|
40
|
-
subPath: .env
|
|
41
40
|
volumes:
|
|
42
41
|
- hostPath:
|
|
43
42
|
path: /home/dd/engine
|
|
@@ -17,7 +17,7 @@ spec:
|
|
|
17
17
|
spec:
|
|
18
18
|
containers:
|
|
19
19
|
- name: dd-default-development-blue
|
|
20
|
-
image: localhost/rockylinux9-underpost:v3.2.
|
|
20
|
+
image: localhost/rockylinux9-underpost:v3.2.4
|
|
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:v3.2.
|
|
103
|
+
image: localhost/rockylinux9-underpost:v3.2.4
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|
|
@@ -20,7 +20,7 @@ spec:
|
|
|
20
20
|
spec:
|
|
21
21
|
containers:
|
|
22
22
|
- name: dd-test-development-blue
|
|
23
|
-
image: localhost/rockylinux9-underpost:v3.2.
|
|
23
|
+
image: localhost/rockylinux9-underpost:v3.2.4
|
|
24
24
|
envFrom:
|
|
25
25
|
- secretRef:
|
|
26
26
|
name: underpost-config
|
|
@@ -112,7 +112,7 @@ spec:
|
|
|
112
112
|
spec:
|
|
113
113
|
containers:
|
|
114
114
|
- name: dd-test-development-green
|
|
115
|
-
image: localhost/rockylinux9-underpost:v3.2.
|
|
115
|
+
image: localhost/rockylinux9-underpost:v3.2.4
|
|
116
116
|
envFrom:
|
|
117
117
|
- secretRef:
|
|
118
118
|
name: underpost-config
|
package/package.json
CHANGED
package/src/cli/run.js
CHANGED
|
@@ -699,6 +699,10 @@ echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com
|
|
|
699
699
|
);
|
|
700
700
|
|
|
701
701
|
if (isDeployRunnerContext(path, options)) {
|
|
702
|
+
// Backup app/services repositories with repo-backup configured
|
|
703
|
+
shellExec(
|
|
704
|
+
`${baseCommand} db ${deployId} ${clusterFlag} --repo-backup --dev --primary-pod --git --force-clone --preserveUUID ${options.namespace ? ` --ns ${options.namespace}` : ''}`,
|
|
705
|
+
);
|
|
702
706
|
shellExec(
|
|
703
707
|
`${baseCommand} deploy${clusterFlag}${cmdString} --replicas ${replicas} --disable-update-proxy ${deployId} ${env} --versions ${versions}${
|
|
704
708
|
options.namespace ? ` --namespace ${options.namespace}` : ''
|
package/src/index.js
CHANGED
package/src/server/cron.js
CHANGED
|
@@ -16,7 +16,7 @@ const volumeHostPath = '/home/dd';
|
|
|
16
16
|
const enginePath = '/home/dd/engine';
|
|
17
17
|
const cronVolumeName = 'underpost-cron-container-volume';
|
|
18
18
|
const shareEnvVolumeName = 'underpost-share-env';
|
|
19
|
-
const
|
|
19
|
+
const underpostContainerEnvDir = '/usr/lib/node_modules/underpost';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Generates a Kubernetes CronJob YAML manifest string.
|
|
@@ -105,9 +105,8 @@ spec:
|
|
|
105
105
|
volumeMounts:
|
|
106
106
|
- mountPath: ${enginePath}
|
|
107
107
|
name: ${cronVolumeName}
|
|
108
|
-
- mountPath: ${
|
|
108
|
+
- mountPath: ${underpostContainerEnvDir}
|
|
109
109
|
name: ${shareEnvVolumeName}
|
|
110
|
-
subPath: .env
|
|
111
110
|
volumes:
|
|
112
111
|
- hostPath:
|
|
113
112
|
path: ${enginePath}
|