Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
sora 2022-11-12 15:11:13 +01:00
parent 8f7d7440e8
commit d2ecee1b58

View File

@ -1,24 +1,21 @@
--- pipeline:
kind: pipeline deploy-production:
type: docker image: docker/compose
name: default volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- echo $DISCORD_BOT_TOKEN
- docker-compose -p discbot up -d --force-recreate --build
environment:
DISCORD_BOT_TOKEN:
from_secret: discord_api
when:
event: push
branch: [master]
steps: test-pr:
- name: deploy image: docker/compose
image: docker/compose commands:
volumes: - echo "1"
- name: docksock when:
path: /var/run/docker.sock event: push
commands:
- echo $DISCORD_BOT_TOKEN
- docker-compose -p discbot up -d --force-recreate --build
when:
branch: [master]
environment:
DISCORD_BOT_TOKEN:
from_secret: discord_api
volumes:
- name: docksock
host:
path: /var/run/docker.sock