28 lines
520 B
YAML
28 lines
520 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: Salt lint
|
|
image: python
|
|
commands:
|
|
- apt-get update -y
|
|
- apt-get upgrade -y
|
|
- pip3 install salt-lint
|
|
- salt-lint -x 207,208,210 states/*/*.sls
|
|
- name: Deploy
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts:
|
|
- salt.paulbsd.com
|
|
source: ./states/
|
|
target: /srv/salt/states
|
|
delete: true
|
|
user: salt
|
|
key:
|
|
from_secret: drone_ssh_key
|
|
when:
|
|
branch:
|
|
- master
|