diff --git a/.drone.yml b/.drone.yml index a0c821c..939d791 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,24 +1,21 @@ ---- -kind: pipeline -type: docker -name: default +pipeline: + deploy-production: + image: docker/compose + 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: -- name: deploy - image: docker/compose - volumes: - - name: docksock - path: /var/run/docker.sock - 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 + test-pr: + image: docker/compose + commands: + - echo "1" + when: + event: push