change .drone.yml steps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
lab 2021-12-05 03:26:10 +08:00
parent f43ef19099
commit c57055a203

View File

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