cyberia 2.99.5 → 2.99.8
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/engine-cyberia.cd.yml +1 -1
- package/.github/workflows/engine-cyberia.ci.yml +8 -2
- package/.github/workflows/ghpkg.ci.yml +10 -25
- package/.github/workflows/npmpkg.ci.yml +14 -2
- package/.github/workflows/publish.ci.yml +4 -0
- package/.github/workflows/publish.cyberia.ci.yml +4 -0
- package/CHANGELOG.md +520 -0
- package/Dockerfile +15 -15
- package/baremetal/commission-workflows.json +43 -6
- package/bin/deploy.js +13 -0
- package/bin/file.js +4 -19
- package/cli.md +84 -42
- package/deployment.yaml +2 -2
- package/examples/static-page/README.md +80 -13
- package/examples/static-page/ssr-components/CustomPage.js +1 -1
- package/jsdoc.json +26 -5
- package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +47 -0
- package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +47 -0
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/manifests/deployment/dd-test-development/deployment.yaml +2 -2
- package/package.json +2 -4
- package/scripts/maas-setup.sh +13 -9
- package/scripts/rocky-kickstart.sh +294 -0
- package/src/cli/baremetal.js +237 -555
- package/src/cli/cloud-init.js +27 -45
- package/src/cli/index.js +52 -6
- package/src/cli/kickstart.js +149 -0
- package/src/cli/repository.js +166 -13
- package/src/cli/run.js +26 -19
- package/src/cli/ssh.js +1 -1
- package/src/cli/static.js +27 -1
- package/src/cli/system.js +332 -0
- package/src/client/components/core/Docs.js +22 -3
- package/src/db/DataBaseProvider.js +3 -3
- package/src/db/mariadb/MariaDB.js +5 -5
- package/src/db/mongo/MongooseDB.js +3 -3
- package/src/index.js +28 -5
- package/src/mailer/EmailRender.js +3 -3
- package/src/mailer/MailerProvider.js +4 -4
- package/src/runtime/express/Dockerfile +15 -15
- package/src/runtime/lampp/Dockerfile +15 -15
- package/src/server/backup.js +23 -5
- package/src/server/client-build-docs.js +29 -3
- package/src/server/conf.js +8 -46
- package/src/server/cron.js +354 -135
- package/src/server/dns.js +2 -0
- package/bin/cron.js +0 -47
- package/bin/db.js +0 -199
- package/bin/hwt.js +0 -49
- package/bin/util.js +0 -63
|
@@ -59,7 +59,7 @@ jobs:
|
|
|
59
59
|
echo "Starting remote sync and deploy"
|
|
60
60
|
cd /home/dd/engine
|
|
61
61
|
sudo -n -- /bin/bash -lc "node bin run pull"
|
|
62
|
-
sudo -n -- /bin/bash -lc "node bin run sync --cron-jobs none --timeout-response 300000ms dd-cyberia,1,,localhost/rockylinux9-underpost:v2.98.3 --cmd 'npm install -g npm@11.2.0,npm install -g underpost,underpost secret underpost --create-from-file /etc/config/.env.production,underpost start --build --run dd-cyberia production'"
|
|
62
|
+
sudo -n -- /bin/bash -lc "node bin run sync --kubeadm --deploy-id-cron-jobs none --timeout-response 300000ms dd-cyberia,1,,localhost/rockylinux9-underpost:v2.98.3 --cmd 'npm install -g npm@11.2.0,npm install -g underpost,underpost secret underpost --create-from-file /etc/config/.env.production,underpost start --build --run dd-cyberia production'"
|
|
63
63
|
init:
|
|
64
64
|
if: github.repository == 'underpostnet/engine' && startsWith(github.event.head_commit.message, 'cd(ssh-init-engine-cyberia)')
|
|
65
65
|
name: Remote SSH init deployment
|
|
@@ -10,7 +10,6 @@ permissions:
|
|
|
10
10
|
id-token: write
|
|
11
11
|
jobs:
|
|
12
12
|
pwa-microservices-template:
|
|
13
|
-
# if: github.repository == 'underpostnet/engine' && startsWith(github.event.head_commit.message, 'ci(engine-cyberia-repo-build)')
|
|
14
13
|
name: Update github repo package Jobs
|
|
15
14
|
env:
|
|
16
15
|
SYNC: ${{ startsWith(github.event.workflow_run.head_commit.message, 'ci(package-pwa-microservices-template-sync-engine-cyberia)') }}
|
|
@@ -42,12 +41,19 @@ jobs:
|
|
|
42
41
|
|
|
43
42
|
- name: Set git global credentials
|
|
44
43
|
run: |
|
|
44
|
+
git config --global --add safe.directory '*'
|
|
45
45
|
git config --global user.name 'underpostnet'
|
|
46
46
|
git config --global user.email 'development@underpost.net'
|
|
47
47
|
|
|
48
48
|
- name: Build repository
|
|
49
49
|
run: |
|
|
50
50
|
cd .. && underpost clone underpostnet/pwa-microservices-template
|
|
51
|
+
FULL_MSG=$(cd pwa-microservices-template && git log -1 --pretty=%B 2>/dev/null || echo "")
|
|
52
|
+
LAST_COMMIT_MESSAGE=$(echo "$FULL_MSG" | sed '1d')
|
|
53
|
+
if [ -z "$LAST_COMMIT_MESSAGE" ]; then
|
|
54
|
+
LAST_COMMIT_MESSAGE="Update engine cyberia repository"
|
|
55
|
+
fi
|
|
56
|
+
echo "[INFO] Captured commit message: $LAST_COMMIT_MESSAGE"
|
|
51
57
|
underpost clone --bare underpostnet/engine-cyberia
|
|
52
58
|
cd engine
|
|
53
59
|
node bin/build dd-cyberia development
|
|
@@ -58,7 +64,7 @@ jobs:
|
|
|
58
64
|
git config user.name 'underpostnet'
|
|
59
65
|
git config user.email 'development@underpost.net'
|
|
60
66
|
git add .
|
|
61
|
-
|
|
67
|
+
git commit -m "$LAST_COMMIT_MESSAGE"
|
|
62
68
|
underpost push . underpostnet/engine-cyberia
|
|
63
69
|
if [ "${SYNC}" = "true" ]; then
|
|
64
70
|
echo "[INFO] Init engine-cyberia deployment"
|
|
@@ -32,20 +32,14 @@ jobs:
|
|
|
32
32
|
curl -fsSL https://rpm.nodesource.com/setup_24.x | bash -
|
|
33
33
|
dnf install nodejs -y
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
# usage: git remote set-url [--push] <name> <newurl> [<oldurl>]
|
|
44
|
-
# or: git remote set-url --add <name> <newurl>
|
|
45
|
-
# or: git remote set-url --delete <name> <url>
|
|
46
|
-
# --[no-]push manipulate push URLs
|
|
47
|
-
# --[no-]add add URL
|
|
48
|
-
# --[no-]delete delete URLs
|
|
35
|
+
- name: Capture commit message
|
|
36
|
+
run: |
|
|
37
|
+
FULL_MSG="${{ github.event.head_commit.message }}"
|
|
38
|
+
LAST_COMMIT_MESSAGE="${FULL_MSG:-update package}"
|
|
39
|
+
echo "LAST_COMMIT_MESSAGE<<EOF" >> $GITHUB_ENV
|
|
40
|
+
echo "$LAST_COMMIT_MESSAGE" >> $GITHUB_ENV
|
|
41
|
+
echo "EOF" >> $GITHUB_ENV
|
|
42
|
+
echo "[INFO] Commit message: $LAST_COMMIT_MESSAGE"
|
|
49
43
|
|
|
50
44
|
- name: Install dependencies and set repo configuration
|
|
51
45
|
run: |
|
|
@@ -57,6 +51,7 @@ jobs:
|
|
|
57
51
|
|
|
58
52
|
- name: Set git global credentials
|
|
59
53
|
run: |
|
|
54
|
+
git config --global --add safe.directory '*'
|
|
60
55
|
git config --global credential.helper ""
|
|
61
56
|
git config --global user.name 'underpostnet'
|
|
62
57
|
git config --global user.email 'fcoverdugoa@underpost.net'
|
|
@@ -67,21 +62,11 @@ jobs:
|
|
|
67
62
|
rm -rf ./.git
|
|
68
63
|
mv ./pwa-microservices-template-ghpkg.git ./.git
|
|
69
64
|
pwd
|
|
70
|
-
git config --global --add safe.directory /__w/pwa-microservices-template/pwa-microservices-template
|
|
71
65
|
git remote set-url origin git@github.com:underpostnet/pwa-microservices-template-ghpkg.git
|
|
72
66
|
git init
|
|
73
67
|
git config user.name 'underpostnet'
|
|
74
68
|
git config user.email 'fcoverdugoa@underpost.net'
|
|
75
69
|
git add .
|
|
76
70
|
git status
|
|
77
|
-
|
|
71
|
+
git commit -m "$LAST_COMMIT_MESSAGE"
|
|
78
72
|
underpost push . underpostnet/pwa-microservices-template-ghpkg
|
|
79
|
-
|
|
80
|
-
# git clone --bare https://github.com/underpostnet/engine.git
|
|
81
|
-
# mkdir engine
|
|
82
|
-
# mv ./engine.git ./engine/.git
|
|
83
|
-
# cd engine
|
|
84
|
-
# git init
|
|
85
|
-
|
|
86
|
-
# git push -u origin https://${{ secrets.GIT_AUTH_TOKEN }}@github.com/underpostnet/pwa-microservices-template-ghpkg.git
|
|
87
|
-
# git push -u origin master
|
|
@@ -34,6 +34,17 @@ jobs:
|
|
|
34
34
|
curl -fsSL https://rpm.nodesource.com/setup_24.x | bash -
|
|
35
35
|
dnf install nodejs -y
|
|
36
36
|
|
|
37
|
+
- name: Capture commit message
|
|
38
|
+
run: |
|
|
39
|
+
FULL_MSG="${{ github.event.head_commit.message }}"
|
|
40
|
+
REST="$(echo "$FULL_MSG" | tail -n +2 | awk 'NR==1{first=$0; has_first=1; next} NR==2{print first " " $0; has_first=0; next} {print} END{if(has_first) print first}')"
|
|
41
|
+
LAST_COMMIT_MESSAGE="${REST:-$FULL_MSG}"
|
|
42
|
+
echo "LAST_COMMIT_MESSAGE<<EOF" >> $GITHUB_ENV
|
|
43
|
+
echo "$LAST_COMMIT_MESSAGE" >> $GITHUB_ENV
|
|
44
|
+
echo "EOF" >> $GITHUB_ENV
|
|
45
|
+
echo "[INFO] Full commit message: $FULL_MSG"
|
|
46
|
+
echo "[INFO] Extracted payload: $LAST_COMMIT_MESSAGE"
|
|
47
|
+
|
|
37
48
|
- name: Install dependencies
|
|
38
49
|
run: |
|
|
39
50
|
npm install -g underpost
|
|
@@ -42,6 +53,7 @@ jobs:
|
|
|
42
53
|
|
|
43
54
|
- name: Set git global credentials
|
|
44
55
|
run: |
|
|
56
|
+
git config --global --add safe.directory '*'
|
|
45
57
|
git config --global credential.helper ""
|
|
46
58
|
git config --global user.name 'underpostnet'
|
|
47
59
|
git config --global user.email 'fcoverdugoa@underpost.net'
|
|
@@ -53,8 +65,8 @@ jobs:
|
|
|
53
65
|
npm run update-template
|
|
54
66
|
cd ../pwa-microservices-template
|
|
55
67
|
git remote set-url origin git@github.com:underpostnet/pwa-microservices-template.git
|
|
56
|
-
git add .
|
|
68
|
+
git add .
|
|
57
69
|
git config user.name 'underpostnet'
|
|
58
70
|
git config user.email 'fcoverdugoa@underpost.net'
|
|
59
|
-
underpost cmt . ci package-pwa-microservices-template-ghpkg
|
|
71
|
+
underpost cmt . ci package-pwa-microservices-template-ghpkg "$LAST_COMMIT_MESSAGE"
|
|
60
72
|
underpost push . underpostnet/pwa-microservices-template
|
|
@@ -12,6 +12,8 @@ jobs:
|
|
|
12
12
|
id-token: write
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ github.ref }}
|
|
15
17
|
- uses: actions/setup-node@v4
|
|
16
18
|
with:
|
|
17
19
|
node-version: '24.x'
|
|
@@ -43,6 +45,8 @@ jobs:
|
|
|
43
45
|
id-token: write
|
|
44
46
|
steps:
|
|
45
47
|
- uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
ref: ${{ github.ref }}
|
|
46
50
|
- uses: actions/setup-node@v4
|
|
47
51
|
with:
|
|
48
52
|
node-version: '24.x'
|
|
@@ -12,6 +12,8 @@ jobs:
|
|
|
12
12
|
id-token: write
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ github.ref }}
|
|
15
17
|
- uses: actions/setup-node@v4
|
|
16
18
|
with:
|
|
17
19
|
node-version: '24.x'
|
|
@@ -43,6 +45,8 @@ jobs:
|
|
|
43
45
|
id-token: write
|
|
44
46
|
steps:
|
|
45
47
|
- uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
ref: ${{ github.ref }}
|
|
46
50
|
- uses: actions/setup-node@v4
|
|
47
51
|
with:
|
|
48
52
|
node-version: '24.x'
|