Merge branch 'dev' of pocketjawa/discord-buttsbot-go into master

master
pocketjawa 2019-07-29 03:11:15 +00:00 committed by Gogs
commit 5e926e73e8
2 changed files with 20 additions and 2 deletions

View File

@ -14,7 +14,6 @@ steps:
commands: commands:
- go get - go get
- go build - go build
- ./discord-buttsbot-go -test
- name: discord - name: discord
image: appleboy/drone-discord image: appleboy/drone-discord
when: when:
@ -25,4 +24,13 @@ steps:
webhook_id: webhook_id:
from_secret: discord_webhook_id from_secret: discord_webhook_id
webhook_token: webhook_token:
from_secret: discord_webhook_token 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

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM golang:latest
WORKDIR /go/src/buttsbot
COPY . .
RUN rm -rf .git .drone.yml .gitignore
RUN go get -d -v ./...
RUN go install -v ./...
CMD ["buttsbot"]