mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
added docker-compose pull policy
This commit is contained in:
parent
55e1bb50d3
commit
946c07e06c
2 changed files with 2 additions and 6 deletions
|
@ -80,11 +80,6 @@ steps:
|
||||||
- |
|
- |
|
||||||
echo -en "\nDRONE_BRANCH=${DRONE_BRANCH}\nCONFIG_PATH=$${ENV_PATH}/${DRONE_BRANCH}/config.yml\nDOCKER_REPO=$${DOCKER_REPO}\n"\
|
echo -en "\nDRONE_BRANCH=${DRONE_BRANCH}\nCONFIG_PATH=$${ENV_PATH}/${DRONE_BRANCH}/config.yml\nDOCKER_REPO=$${DOCKER_REPO}\n"\
|
||||||
>> $${BUILD_PATH}/${DRONE_BRANCH}/.env
|
>> $${BUILD_PATH}/${DRONE_BRANCH}/.env
|
||||||
- |
|
|
||||||
docker-compose \
|
|
||||||
-f $${BUILD_PATH}/${DRONE_BRANCH}/docker-compose.yml \
|
|
||||||
--env-file $${BUILD_PATH}/${DRONE_BRANCH}/.env \
|
|
||||||
pull
|
|
||||||
- |
|
- |
|
||||||
docker-compose \
|
docker-compose \
|
||||||
-f $${BUILD_PATH}/${DRONE_BRANCH}/docker-compose.yml \
|
-f $${BUILD_PATH}/${DRONE_BRANCH}/docker-compose.yml \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version: '3.4'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -14,6 +14,7 @@ services:
|
||||||
app:
|
app:
|
||||||
container_name: bot-${DRONE_BRANCH}
|
container_name: bot-${DRONE_BRANCH}
|
||||||
restart: always
|
restart: always
|
||||||
|
pull_policy: always
|
||||||
environment:
|
environment:
|
||||||
PORT: 80
|
PORT: 80
|
||||||
image: ${DOCKER_REPO}:${DRONE_BRANCH}
|
image: ${DOCKER_REPO}:${DRONE_BRANCH}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue