--- kind: pipeline type: docker name: default 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