diff --git a/.woodpecker/test.yaml b/.woodpecker/test-and-deploy.yaml similarity index 88% rename from .woodpecker/test.yaml rename to .woodpecker/test-and-deploy.yaml index 09d6826..6dbfc02 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test-and-deploy.yaml @@ -3,7 +3,7 @@ when: - event: manual steps: - - name: test + - name: test-and-deploy image: docker.io/node:hydrogen volumes: - /etc/ssh:/etc/ssh diff --git a/package.json b/package.json index ce92615..b2fe868 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "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", - "deploy": "pm2 deploy production" + "deploy": "pm2 deploy production && pm2 deploy production exec \"pm2 restart autobaan\"" }, "dependencies": { "@nestjs/bull": "^0.6.3",