2023-05-29 09:32:25 -06:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.20
|
|
|
|
commands:
|
2023-05-29 10:10:38 -06:00
|
|
|
- go test -v -race -skip '^TestE2E' ./...
|
|
|
|
|
|
|
|
- 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
|