mv environments embedded in commands to separated section
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
lab 2021-12-05 16:37:44 +08:00
parent c57055a203
commit 1ab9499a44

View File

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