Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
8f7d7440e8
commit
d2ecee1b58
27
.drone.yml
27
.drone.yml
@ -1,24 +1,21 @@
|
|||||||
---
|
pipeline:
|
||||||
kind: pipeline
|
deploy-production:
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deploy
|
|
||||||
image: docker/compose
|
image: docker/compose
|
||||||
volumes:
|
volumes:
|
||||||
- name: docksock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
commands:
|
||||||
- echo $DISCORD_BOT_TOKEN
|
- echo $DISCORD_BOT_TOKEN
|
||||||
- docker-compose -p discbot up -d --force-recreate --build
|
- docker-compose -p discbot up -d --force-recreate --build
|
||||||
when:
|
|
||||||
branch: [master]
|
|
||||||
environment:
|
environment:
|
||||||
DISCORD_BOT_TOKEN:
|
DISCORD_BOT_TOKEN:
|
||||||
from_secret: discord_api
|
from_secret: discord_api
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: [master]
|
||||||
|
|
||||||
volumes:
|
test-pr:
|
||||||
- name: docksock
|
image: docker/compose
|
||||||
host:
|
commands:
|
||||||
path: /var/run/docker.sock
|
- echo "1"
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user