From c57055a2031075035d36ab2415168e6624de506c Mon Sep 17 00:00:00 2001 From: lab Date: Sun, 5 Dec 2021 03:26:10 +0800 Subject: [PATCH] change .drone.yml steps --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b15bc54..b846934 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,9 +24,12 @@ steps: image: golang:1.17-alpine pull: if-not-exists commands: - - CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -ldflags="-s -w" -tags timetzdata -o app main.go + - export CGO_ENABLED=0 + - export GOOS="linux" + - export GOARCH="amd64" + - go build -ldflags="-s -w" -tags timetzdata -o app main.go - - name: docker + - name: publish image: plugins/docker settings: repo: esinio/helloworld