From 1ab9499a442d89c87c6cbcf50833e8ee0529f029 Mon Sep 17 00:00:00 2001 From: lab Date: Sun, 5 Dec 2021 16:37:44 +0800 Subject: [PATCH] mv environments embedded in commands to separated section --- .drone.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index b846934..b169d2d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ name: default steps: - name: greeting + group: echo image: alpine commands: - echo hello @@ -11,11 +12,13 @@ steps: - echo done - name: en + group: echo image: alpine commands: - echo hello world - name: fr + group: echo image: alpine commands: - echo bonjour monde @@ -23,10 +26,12 @@ steps: - name: build image: golang:1.17-alpine pull: if-not-exists + environment: + CGO_ENABLED: 0 + GOOS: linux + GOARCH: amd64 commands: - - export CGO_ENABLED=0 - - export GOOS="linux" - - export GOARCH="amd64" + - echo env - go build -ldflags="-s -w" -tags timetzdata -o app main.go - name: publish