adding deploy step
Some checks failed
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
Collin Duncan 2025-04-28 13:58:51 +02:00
parent 93bcc887b9
commit 691deb7765
No known key found for this signature in database
2 changed files with 98 additions and 96 deletions

View file

@ -3,14 +3,15 @@ when:
- event: manual
steps:
# - name: test
# image: docker.io/node:hydrogen-slim
# commands:
# - npm ci
# - npm run test:unit
- name: deploy
image: kroniak/ssh-client
- name: test
image: docker.io/node:hydrogen-slim
volumes:
- /etc/ssh:/etc/ssh
commands:
- npm ci
- npm run test:unit
- npm run deploy
- name: deploy
image: kroniak/ssh-client
commands:
- ssh root@autobaan touch deploy

View file

@ -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",