From 844de6693ebd9b606061f4984bbceca845b7087b Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 22 Aug 2019 14:19:17 +0200 Subject: [PATCH] Add drone/dockerfile --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ Dockerfile | 8 ++++++++ 2 files changed, 41 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile 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