Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
452de79614
commit
ed6ffdcb9f
21
.drone.yml
21
.drone.yml
|
@ -1,6 +1,6 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
|
@ -8,6 +8,19 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go test -v -race -skip '^TestE2E' ./...
|
- go test -v -race -skip '^TestE2E' ./...
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: golang:1.20
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
|
commands:
|
||||||
|
- go build -ldflags "-s -w" -o build/ev ./cmd/ev
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
settings:
|
settings:
|
||||||
|
@ -18,3 +31,9 @@ steps:
|
||||||
user: deploy
|
user: deploy
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: drone_ssh
|
from_secret: drone_ssh
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- lavana
|
||||||
|
|
Loading…
Reference in New Issue
Block a user