This commit is contained in:
parent
93bcc887b9
commit
691deb7765
2 changed files with 98 additions and 96 deletions
|
|
@ -3,14 +3,15 @@ when:
|
||||||
- event: manual
|
- event: manual
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: test
|
- name: test
|
||||||
# image: docker.io/node:hydrogen-slim
|
image: docker.io/node:hydrogen-slim
|
||||||
# commands:
|
|
||||||
# - npm ci
|
|
||||||
# - npm run test:unit
|
|
||||||
- name: deploy
|
|
||||||
image: kroniak/ssh-client
|
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/ssh:/etc/ssh
|
- /etc/ssh:/etc/ssh
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run test:unit
|
||||||
|
- npm run deploy
|
||||||
|
- name: deploy
|
||||||
|
image: kroniak/ssh-client
|
||||||
commands:
|
commands:
|
||||||
- ssh root@autobaan touch deploy
|
- ssh root@autobaan touch deploy
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,8 @@
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||||
"test:unit": "jest --config ./test/jest-unit.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: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": {
|
"dependencies": {
|
||||||
"@nestjs/bull": "^0.6.3",
|
"@nestjs/bull": "^0.6.3",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue