mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
#5 fixed build
This commit is contained in:
parent
1bfcda94eb
commit
459d1655da
2 changed files with 2 additions and 4 deletions
|
@ -59,7 +59,7 @@ steps:
|
|||
- mkdir -p $${BUILD_PATH}/${DRONE_BRANCH}
|
||||
- cd $${BUILD_PATH}/${DRONE_BRANCH}
|
||||
- tar -xjf /tmp/tg-bot-${DRONE_BRANCH}/app.tar.bz2 -C ./
|
||||
- cp $${ENV_PATH}/${DRONE_BRANCH}/config.yml $${BUILD_PATH}/${DRONE_BRANCH}
|
||||
- cp -a $${ENV_PATH}/${DRONE_BRANCH}/. $${BUILD_PATH}/${DRONE_BRANCH}
|
||||
- docker-compose -f ./docker/docker-compose.yml build
|
||||
- docker-compose -f ./docker/docker-compose.yml up -d
|
||||
- name: telegram_notify
|
||||
|
|
|
@ -3,8 +3,6 @@ services:
|
|||
db:
|
||||
container_name: bot-db
|
||||
image: postgres:11-alpine
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
|
@ -24,7 +22,7 @@ services:
|
|||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- node_modules:/app/node_modules
|
||||
entrypoint: node ./index.js
|
||||
entrypoint: ./wait-for-it.sh -t 90 db:5432 -- node ./index.js
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue