From 0b8cc02963109c6550e0befaacb5f4d2e9ca761a Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 24 Dec 2018 17:25:21 +0100 Subject: [PATCH] fix master build --- .drone.sh | 4 ++-- .drone.yml | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.drone.sh b/.drone.sh index 7fcfe66..1d41ee0 100755 --- a/.drone.sh +++ b/.drone.sh @@ -1,5 +1,5 @@ #!/bin/sh VERSION=${DRONE_BUILD_NUMBER} -CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go -CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go +CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go +CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go diff --git a/.drone.yml b/.drone.yml index dc8daff..79385a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,13 @@ pipeline: when: event: pull_request + build_publish: + image: golang:alpine + commands: sh .drone.sh + when: + branch: master + event: push + publish_srv: image: plugins/docker repo: kube-registry.kube-system.svc.cluster.local:5000/ciapp/srv @@ -42,7 +49,7 @@ pipeline: branch: master event: push - build: + build_release: image: golang:alpine commands: sh .drone.sh when: