ev/.drone.yml
xuu 9f44b4e6ab
All checks were successful
continuous-integration/drone/push Build is passing
Update '.drone.yml'
2023-05-29 10:17:53 -06:00

41 lines
624 B
YAML

kind: pipeline
type: docker
name: build
steps:
- name: test
image: golang:1.20
commands:
- 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
steps:
- name: deploy
image: plugins/ansible:3
settings:
playbook: .ansible/playbook.yml
inventory: .ansible/inventory
become: true
become_method: sudo
user: deploy
private_key:
from_secret: drone_ssh
trigger:
event:
- promote
target:
- lavana