2019-04-27 02:36:38 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/discord-buttsbot-go
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
DISCORD_TOKEN:
|
|
|
|
from_secret: discord_token
|
2019-04-27 06:20:18 +00:00
|
|
|
DISCORD_BOT_CHANNEL:
|
|
|
|
from_secret: discord_bot_channel
|
2019-04-27 02:36:38 +00:00
|
|
|
commands:
|
|
|
|
- go get
|
|
|
|
- go build
|
|
|
|
- name: discord
|
|
|
|
image: appleboy/drone-discord
|
2019-04-27 18:05:07 +00:00
|
|
|
when:
|
|
|
|
status:
|
2019-04-27 18:10:04 +00:00
|
|
|
- success
|
|
|
|
- failure
|
2019-04-27 02:36:38 +00:00
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
webhook_token:
|
2019-07-29 03:08:13 +00:00
|
|
|
from_secret: discord_webhook_token
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: pocketjawa/discord-buttsbot
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|