From 426c52ccedc2d9b1ced6fdab2a6370d9964fdb50 Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Fri, 1 Sep 2017 10:57:21 -0400 Subject: [PATCH] Remove Readme ref to .drone.sh Fix stupid rancher publish ref that sneaked in Added windows container preperation --- .drone.yml | 20 ++++++++++++++++++++ Dockerfile.windows | 13 +++++++++++++ README.md | 2 +- main.go | 4 ++-- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 Dockerfile.windows diff --git a/.drone.yml b/.drone.yml index 264f537..a00944c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,6 +40,16 @@ pipeline: commands: - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm/drone-webhook + # build_windows_amd64: + # image: golang:1.9-nanoserver + # group: build + # environment: + # - GOOS=windows + # - GOARCH=amd64 + # - CGO_ENABLED=0 + # commands: + # - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-webhook + publish_linux_amd64: image: plugins/docker repo: plugins/webook @@ -69,3 +79,13 @@ pipeline: when: branch: master event: push + + # publish_windows_amd64: + # image: plugins/docker + # repo: plugins/webhook + # tags: [ windows-amd64 ] + # secrets: [ docker_username, docker_password ] + # dockerfile: Dockerfile.windows + # when: + # branch: master + # event: push diff --git a/Dockerfile.windows b/Dockerfile.windows new file mode 100644 index 0000000..c551a37 --- /dev/null +++ b/Dockerfile.windows @@ -0,0 +1,13 @@ +FROM microsoft/nanoserver:latest +MAINTAINER Drone.IO Community + +ENV GODEBUG=netdns=go + +LABEL org.label-schema.version=latest +LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-webhook.git" +LABEL org.label-schema.name="Drone Webhook" +LABEL org.label-schema.vendor="Drone.IO Community" +LABEL org.label-schema.schema-version="1.0" + +ADD release/windows/amd64/drone-webhook /bin/ +ENTRYPOINT [ "/bin/drone-webhook" ] \ No newline at end of file diff --git a/README.md b/README.md index 291512c..e344814 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Drone plugin to send build status notifications via Webhook. For the usage infor ## Binary -Build the binary using `./.drone.sh`: +Build the binary using `drone exec`: ### Usage diff --git a/main.go b/main.go index 03ff71c..a1dfea1 100644 --- a/main.go +++ b/main.go @@ -16,8 +16,8 @@ var build string func main() { app := cli.NewApp() - app.Name = "rancher publish" - app.Usage = "rancher publish" + app.Name = "Drone webhook" + app.Usage = "Drone webhook" app.Action = run app.Version = fmt.Sprintf("1.0.0+%s", build) app.Flags = []cli.Flag{