Merge branch 'dev' of pocketjawa/discord-buttsbot-go into master
commit
5e926e73e8
12
.drone.yml
12
.drone.yml
|
@ -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
|
|
@ -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"]
|
Loading…
Reference in New Issue