Remove Readme ref to .drone.sh

Fix stupid rancher publish ref that sneaked in
Added windows container preperation
This commit is contained in:
Joachim Hill-Grannec 2017-09-01 10:57:21 -04:00
parent cfb46f2f1e
commit 426c52cced
4 changed files with 36 additions and 3 deletions

View File

@ -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

13
Dockerfile.windows Normal file
View File

@ -0,0 +1,13 @@
FROM microsoft/nanoserver:latest
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
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" ]

View File

@ -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

View File

@ -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{