Remove Readme ref to .drone.sh
Fix stupid rancher publish ref that sneaked in Added windows container preperation
This commit is contained in:
parent
cfb46f2f1e
commit
426c52cced
20
.drone.yml
20
.drone.yml
|
@ -40,6 +40,16 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm/drone-webhook
|
- 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:
|
publish_linux_amd64:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: plugins/webook
|
repo: plugins/webook
|
||||||
|
@ -69,3 +79,13 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
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
|
||||||
|
|
|
@ -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" ]
|
|
@ -10,7 +10,7 @@ Drone plugin to send build status notifications via Webhook. For the usage infor
|
||||||
|
|
||||||
## Binary
|
## Binary
|
||||||
|
|
||||||
Build the binary using `./.drone.sh`:
|
Build the binary using `drone exec`:
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
|
4
main.go
4
main.go
|
@ -16,8 +16,8 @@ var build string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "rancher publish"
|
app.Name = "Drone webhook"
|
||||||
app.Usage = "rancher publish"
|
app.Usage = "Drone webhook"
|
||||||
app.Action = run
|
app.Action = run
|
||||||
app.Version = fmt.Sprintf("1.0.0+%s", build)
|
app.Version = fmt.Sprintf("1.0.0+%s", build)
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
|
|
Loading…
Reference in New Issue