Compare commits
1 commit
deploy_tes
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a6fb5f35b6 |
5 changed files with 13542 additions and 12392 deletions
13
.woodpecker/test-and-deploy.yaml
Normal file
13
.woodpecker/test-and-deploy.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
when:
|
||||
- event: push
|
||||
- event: manual
|
||||
|
||||
steps:
|
||||
- name: test-and-deploy
|
||||
image: docker.io/node:hydrogen
|
||||
volumes:
|
||||
- /etc/ssh:/etc/ssh
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run test:unit
|
||||
- npm run deploy
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: docker.io/node:hydrogen-slim
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run test:unit
|
||||
20
ecosystem.config.js
Normal file
20
ecosystem.config.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'autobaan',
|
||||
script: 'npm',
|
||||
args: 'run start',
|
||||
},
|
||||
],
|
||||
deploy: {
|
||||
production: {
|
||||
user: 'root',
|
||||
host: ['autobaan'],
|
||||
ref: 'origin/deploy_test',
|
||||
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
|
||||
path: '/root/autobaan',
|
||||
'post-deploy':
|
||||
'npm install && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
|
||||
},
|
||||
},
|
||||
}
|
||||
1169
package-lock.json
generated
1169
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -19,7 +19,8 @@
|
|||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||
"test:unit": "jest --config ./test/jest-unit.json",
|
||||
"migrations:generate": "npx typeorm-ts-node-commonjs migration:generate -d data-source.ts database/migrations/$npm_config_name",
|
||||
"migrations": "npx typeorm-ts-node-commonjs migration:run -d data-source.ts"
|
||||
"migrations": "npx typeorm-ts-node-commonjs migration:run -d data-source.ts",
|
||||
"deploy": "pm2 deploy production"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/bull": "^0.6.3",
|
||||
|
|
@ -61,6 +62,7 @@
|
|||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"jest": "29.5.0",
|
||||
"pm2": "^6.0.5",
|
||||
"prettier": "^2.3.2",
|
||||
"source-map-support": "^0.5.20",
|
||||
"supertest": "^6.1.3",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue