@trojeancedric/deployer 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +170 -2
- package/dist/deployer.js +4767 -0
- package/examples/sentinel.deployer.json +46 -0
- package/package.json +54 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sentinel",
|
|
3
|
+
"repo": "tro-jean-cedric/sentinel",
|
|
4
|
+
"imagePrefix": "ghcr.io/tro-jean-cedric/sentinel",
|
|
5
|
+
"ref": "main",
|
|
6
|
+
"version": { "file": "app/package.json", "format": "{version}-{sha}" },
|
|
7
|
+
"platforms": ["linux/amd64"],
|
|
8
|
+
"pushLatest": true,
|
|
9
|
+
"images": {
|
|
10
|
+
"app": { "context": "app", "dockerfile": "app/Dockerfile", "tagVar": "SUPERCHECK_VERSION" },
|
|
11
|
+
"worker": { "context": "worker", "dockerfile": "worker/Dockerfile", "tagVar": "WORKER_VERSION", "tagVarFallback": "SUPERCHECK_VERSION" },
|
|
12
|
+
"appium-runner": { "context": "worker/appium-runner", "dockerfile": "worker/appium-runner/Dockerfile", "service": false },
|
|
13
|
+
"docs": { "context": "docs", "dockerfile": "docs/Dockerfile", "tagVar": "DOCS_VERSION", "tagVarFallback": "SUPERCHECK_VERSION" },
|
|
14
|
+
"appium-emulator": {
|
|
15
|
+
"context": "deploy/docker/appium",
|
|
16
|
+
"dockerfile": "deploy/docker/appium/emulator.Dockerfile",
|
|
17
|
+
"default": false,
|
|
18
|
+
"versioned": false,
|
|
19
|
+
"platforms": ["linux/amd64"],
|
|
20
|
+
"buildArgs": { "API_LEVEL": "34" },
|
|
21
|
+
"tags": ["api-{arg:API_LEVEL}"],
|
|
22
|
+
"service": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"checks": [
|
|
26
|
+
{ "name": "app: npm ci, tsc, lint, jest, build", "cwd": "app",
|
|
27
|
+
"run": "npm ci --prefer-offline --no-audit && npx tsc --noEmit && npm run lint -- --max-warnings 0 && NODE_ENV=test npm run test:cov -- --maxWorkers=2 && SKIP_ENV_VALIDATION=true npm run build" },
|
|
28
|
+
{ "name": "worker: npm ci, tsc, jest, build", "cwd": "worker",
|
|
29
|
+
"run": "npm ci --prefer-offline --no-audit && npx tsc --noEmit && NODE_ENV=test npm run test:cov -- --maxWorkers=2 && npm run build" }
|
|
30
|
+
],
|
|
31
|
+
"deploy": {
|
|
32
|
+
"composeFile": "docker-compose.yml",
|
|
33
|
+
"envFile": ".env",
|
|
34
|
+
"pull": "never",
|
|
35
|
+
"up": "all",
|
|
36
|
+
"postDeploy": [
|
|
37
|
+
{ "name": "sandbox smoke test (pre-pulls the worker into K3s)", "run": "docker compose exec -T -w /worker worker node - < sandbox-smoke.js" }
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"remote": {
|
|
41
|
+
"host": "10.12.14.104",
|
|
42
|
+
"user": "cedric.tro",
|
|
43
|
+
"identityFile": "~/.ssh/sentinel_vps",
|
|
44
|
+
"dir": "~/sentinel"
|
|
45
|
+
}
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trojeancedric/deployer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Build Docker images, push them to GHCR, then pull and deploy any version on a VPS \u2014 from one interactive CLI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"docker",
|
|
7
|
+
"deploy",
|
|
8
|
+
"ghcr",
|
|
9
|
+
"github-packages",
|
|
10
|
+
"vps",
|
|
11
|
+
"docker-compose",
|
|
12
|
+
"buildx",
|
|
13
|
+
"cli",
|
|
14
|
+
"tui"
|
|
15
|
+
],
|
|
16
|
+
"author": "trojeancedric",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/tro-jean-cedric/deployer.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/tro-jean-cedric/deployer#readme",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/tro-jean-cedric/deployer/issues"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18.17.0"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"deployer": "dist/deployer.js"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE",
|
|
37
|
+
"examples"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"tag": "latest"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"dev": "tsx src/bin/deployer.ts",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
48
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^22.13.0",
|
|
52
|
+
"tsup": "^8.4.0",
|
|
53
|
+
"tsx": "^4.19.2",
|
|
54
|
+
"typescript": "^5.7.3"
|
|
55
|
+
}
|
|
56
|
+
}
|