mv environments embedded in commands to separated section
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c57055a203
commit
1ab9499a44
11
.drone.yml
11
.drone.yml
@ -4,6 +4,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: greeting
|
- name: greeting
|
||||||
|
group: echo
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo hello
|
- echo hello
|
||||||
@ -11,11 +12,13 @@ steps:
|
|||||||
- echo done
|
- echo done
|
||||||
|
|
||||||
- name: en
|
- name: en
|
||||||
|
group: echo
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo hello world
|
- echo hello world
|
||||||
|
|
||||||
- name: fr
|
- name: fr
|
||||||
|
group: echo
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo bonjour monde
|
- echo bonjour monde
|
||||||
@ -23,10 +26,12 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: golang:1.17-alpine
|
image: golang:1.17-alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- export CGO_ENABLED=0
|
- echo env
|
||||||
- export GOOS="linux"
|
|
||||||
- export GOARCH="amd64"
|
|
||||||
- go build -ldflags="-s -w" -tags timetzdata -o app main.go
|
- go build -ldflags="-s -w" -tags timetzdata -o app main.go
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
|
Loading…
x
Reference in New Issue
Block a user