ansible_drone/pipeline.libsonnet
2019-06-20 01:42:25 +08:00

26 lines
546 B
Plaintext

{
build(version, os='linux', arch='amd64'):: {
kind: 'pipeline',
name: os + '-' + arch + '-' + version,
platform: {
os: os,
arch: arch,
},
steps: [
{
name: 'lint',
image: 'chusiang/ansible:' + version,
pull: 'always',
environment: {
ANSIBLE_VERSION: version,
},
commands: [
'echo "==> Syntax Check on Ansible ' + version + ' ..."',
'ansible --version',
'ansible-lint tasks/main.yml',
],
},
],
},
}