|
|
@ -8,7 +8,7 @@ steps: |
|
|
|
image: golang:1.11 |
|
|
|
commands: |
|
|
|
- go mod download |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" -o main.go |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" . |
|
|
|
when: |
|
|
|
event: |
|
|
|
exclude: |
|
|
@ -18,7 +18,7 @@ steps: |
|
|
|
image: golang:1.12 |
|
|
|
commands: |
|
|
|
- go mod download |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" main.go |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" . |
|
|
|
when: |
|
|
|
event: |
|
|
|
exclude: |
|
|
@ -28,7 +28,7 @@ steps: |
|
|
|
image: golang:1.13 |
|
|
|
commands: |
|
|
|
- go mod download |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" -o main.go |
|
|
|
- CGO_ENABLED=0 go build -ldflags "-w -s" . |
|
|
|
when: |
|
|
|
event: |
|
|
|
exclude: |
|
|
|