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:
- go get
- go build
- ./discord-buttsbot-go -test
- name: discord
image: appleboy/drone-discord
when:
@ -26,3 +25,12 @@ steps:
from_secret: discord_webhook_id
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"]