Add drone/dockerfile
This commit is contained in:
parent
48849cf0a5
commit
844de6693e
2 changed files with 41 additions and 0 deletions
33
.drone.yml
Normal file
33
.drone.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- GOPROXY=https://modules.fromouter.space go mod download
|
||||||
|
- CGO_ENABLED=0 go install .
|
||||||
|
volumes:
|
||||||
|
- name: gopath
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
repo: hamcha/mlpdraftbot
|
||||||
|
target: final
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: gopath
|
||||||
|
temp: {}
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM golang:alpine
|
||||||
|
RUN apk add git
|
||||||
|
|
||||||
|
ENV GOPROXY https://modules.fromouter.space
|
||||||
|
RUN go get git.fromouter.space/mcg/mlpdraftbot
|
||||||
|
|
||||||
|
ENTRYPOINT [ "mlpdraftbot" ]
|
||||||
|
EXPOSE 5749
|
Loading…
Reference in a new issue