27 lines
508 B
YAML
27 lines
508 B
YAML
kind: pipeline
|
|
name: default
|
|
workspace:
|
|
base: /go
|
|
path: src/discord-buttsbot-go
|
|
steps:
|
|
- name: test
|
|
image: golang
|
|
environment:
|
|
DISCORD_TOKEN:
|
|
from_secret: discord_token
|
|
DISCORD_BOT_CHANNEL:
|
|
from_secret: discord_bot_channel
|
|
commands:
|
|
- go get
|
|
- go build
|
|
- name: discord
|
|
image: appleboy/drone-discord
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|
|
settings:
|
|
webhook_id:
|
|
from_secret: discord_webhook_id
|
|
webhook_token:
|
|
from_secret: discord_webhook_token |