2022-06-08 23:48:48 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Salt lint
|
|
|
|
image: python
|
|
|
|
commands:
|
|
|
|
- pip3 install salt-lint
|
2022-06-10 00:39:52 +02:00
|
|
|
- salt-lint -x 207,208,210 states/*/*.sls
|
2024-02-20 21:17:48 +01:00
|
|
|
- name: Deploy
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
settings:
|
|
|
|
hosts:
|
2024-02-20 22:34:56 +01:00
|
|
|
- salt.paulbsd.com
|
2024-02-20 21:17:48 +01:00
|
|
|
source: ./states/
|
|
|
|
target: /srv/salt/states
|
2024-02-21 10:06:36 +01:00
|
|
|
delete: true
|
2024-02-20 22:18:50 +01:00
|
|
|
user: salt
|
2024-02-20 21:17:48 +01:00
|
|
|
key:
|
|
|
|
from_secret: drone_ssh_key
|
2024-02-21 10:14:26 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|