20 lines
369 B
YAML
20 lines
369 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.20
|
|
commands:
|
|
- 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 |