From ed6ffdcb9f8b82997c914ab9f433940b32231db3 Mon Sep 17 00:00:00 2001 From: xuu Date: Mon, 29 May 2023 10:16:58 -0600 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7a0af6e..e8da51e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: build steps: - name: test @@ -8,6 +8,19 @@ steps: 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 + - name: deploy image: plugins/ansible:3 settings: @@ -17,4 +30,10 @@ steps: become_method: sudo user: deploy private_key: - from_secret: drone_ssh \ No newline at end of file + from_secret: drone_ssh + +trigger: + event: + - promote + target: + - lavana