Compare commits
2 commits
e4f072655e
...
ee7504bdf2
Author | SHA1 | Date | |
---|---|---|---|
ee7504bdf2 | |||
2091e326b8 |
5 changed files with 9994 additions and 5354 deletions
|
@ -51,14 +51,14 @@ steps:
|
|||
- name: build
|
||||
image: node
|
||||
commands:
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
- npm ci
|
||||
- npm run build
|
||||
|
||||
- name: test
|
||||
image: node
|
||||
commands:
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn test
|
||||
- npm ci
|
||||
- npm test
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
|
9982
package-lock.json
generated
Normal file
9982
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -13,11 +13,11 @@ cd ~/apps/card-drop/card-drop_prod \
|
|||
&& (pm2 stop card-drop_prod || true) \
|
||||
&& (pm2 delete card-drop_prod || true) \
|
||||
&& cp .prod.env .env \
|
||||
&& yarn clean \
|
||||
&& yarn install --frozen-lockfile \
|
||||
&& yarn build \
|
||||
&& npm run clean \
|
||||
&& npm ci \
|
||||
&& npm run build \
|
||||
&& docker compose --file docker-compose.prod.yml up -d \
|
||||
&& echo "Sleeping for 10 seconds to let database load..." \
|
||||
&& sleep 10 \
|
||||
&& yarn run db:up \
|
||||
&& npm run db:up \
|
||||
&& NODE_ENV=production pm2 start --name card-drop_prod dist/bot.js
|
|
@ -13,11 +13,11 @@ cd ~/apps/card-drop/card-drop_stage \
|
|||
&& (pm2 stop card-drop_stage || true) \
|
||||
&& (pm2 delete card-drop_stage || true) \
|
||||
&& cp .stage.env .env \
|
||||
&& yarn clean \
|
||||
&& yarn install --frozen-lockfile \
|
||||
&& yarn build \
|
||||
&& npm run clean \
|
||||
&& npm ci \
|
||||
&& npm run build \
|
||||
&& docker compose --file docker-compose.stage.yml up -d \
|
||||
&& echo "Sleeping for 10 seconds to let database load..." \
|
||||
&& sleep 10 \
|
||||
&& yarn run db:up \
|
||||
&& npm run db:up \
|
||||
&& NODE_ENV=production pm2 start --name card-drop_stage dist/bot.js
|
Loading…
Reference in a new issue