diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c4b3ec2 --- /dev/null +++ b/.drone.yml @@ -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: {} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bec7faf --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file