ansible_drone/pipeline.libsonnet

26 lines
546 B
Plaintext
Raw Permalink Normal View History

{
build(version, os='linux', arch='amd64'):: {
kind: 'pipeline',
2019-06-19 19:08:38 +02:00
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',
2019-06-19 19:11:48 +02:00
'ansible-lint tasks/main.yml',
],
},
],
},
}