This commit is contained in:
parent
5797a7dfcf
commit
34444d114c
@ -9,12 +9,8 @@ local PipelineLinting = {
|
||||
{
|
||||
name: "ansible-later",
|
||||
image: "xoxys/ansible-later:latest",
|
||||
environment: {
|
||||
PY_COLORS: 1
|
||||
},
|
||||
commands: [
|
||||
"git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy",
|
||||
"ansible-later -c ~/policy/config.yml"
|
||||
"ansible-later",
|
||||
],
|
||||
},
|
||||
],
|
||||
@ -40,16 +36,14 @@ local PipelineDeployment = {
|
||||
steps: [
|
||||
{
|
||||
name: "ansible-molecule",
|
||||
image: "xoxys/molecule:do-linux-amd64",
|
||||
image: "xoxys/molecule:latest",
|
||||
environment: {
|
||||
DO_API_KEY: { "from_secret": "do_api_key" },
|
||||
USER: "root",
|
||||
MOLECULE_CUSTOM_MODULES_REPO: "https://gitea.rknet.org/ansible/custom_modules",
|
||||
MOLECULE_CUSTOM_FILTERS_REPO: "https://gitea.rknet.org/ansible/custom_filters",
|
||||
PY_COLORS: 1
|
||||
},
|
||||
commands: [
|
||||
"/bin/bash /docker-entrypoint.sh",
|
||||
"molecule test -s default",
|
||||
],
|
||||
},
|
||||
@ -78,7 +72,6 @@ local PipelineDocumentation = {
|
||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: "molecule/",
|
||||
ANSIBLE_DOCTOR_CUSTOM_HEADER: "HEADER.md",
|
||||
PY_COLORS: 1
|
||||
},
|
||||
},
|
||||
{
|
||||
|
26
.drone.yml
26
.drone.yml
@ -10,16 +10,13 @@ steps:
|
||||
- name: ansible-later
|
||||
image: xoxys/ansible-later:latest
|
||||
commands:
|
||||
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
||||
- ansible-later -c ~/policy/config.yml
|
||||
environment:
|
||||
PY_COLORS: 1
|
||||
- ansible-later
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/tags/**"
|
||||
- "refs/pull/**"
|
||||
- refs/tags/**
|
||||
- refs/pull/**
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -38,22 +35,20 @@ workspace:
|
||||
|
||||
steps:
|
||||
- name: ansible-molecule
|
||||
image: xoxys/molecule:do-linux-amd64
|
||||
image: xoxys/molecule:latest
|
||||
commands:
|
||||
- /bin/bash /docker-entrypoint.sh
|
||||
- molecule test -s default
|
||||
environment:
|
||||
DO_API_KEY:
|
||||
from_secret: do_api_key
|
||||
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
|
||||
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
|
||||
PY_COLORS: 1
|
||||
USER: root
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/tags/**"
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- linting
|
||||
@ -74,7 +69,6 @@ steps:
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
||||
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
||||
PY_COLORS: 1
|
||||
|
||||
- name: push-to-repo
|
||||
image: plugins/git-action:latest
|
||||
@ -82,7 +76,7 @@ steps:
|
||||
actions:
|
||||
- commit
|
||||
- push
|
||||
author_email: "shipper@rknet.org"
|
||||
author_email: shipper@rknet.org
|
||||
author_name: DroneShipper
|
||||
branch: master
|
||||
message: "[SKIP CI] update readme"
|
||||
@ -99,8 +93,8 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/tags/**"
|
||||
- "refs/pull/**"
|
||||
- refs/tags/**
|
||||
- refs/pull/**
|
||||
|
||||
depends_on:
|
||||
- deployment
|
||||
@ -133,7 +127,7 @@ steps:
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- "refs/tags/**"
|
||||
- refs/tags/**
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
@ -143,6 +137,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 194f6df5c41d3c9825e009f2e1eeb738fddaaddefde156ee73ff8c477da39a8b
|
||||
hmac: 2bc870045380fae5a662d21dddca1a1709efb596f8b6ff5379574b5ddf06f2c3
|
||||
|
||||
...
|
||||
|
18
.later.yml
Normal file
18
.later.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
ansible:
|
||||
custom_modules:
|
||||
- iptables_raw
|
||||
- openssl_pkcs12
|
||||
- proxmox_kvm2
|
||||
- ucr
|
||||
- yum_versionlock
|
||||
|
||||
rules:
|
||||
exclude_files:
|
||||
- molecule/
|
||||
- "LICENSE*"
|
||||
- "**/*.md"
|
||||
- "**/*.ini"
|
||||
|
||||
exclude_filter:
|
||||
- LINT0009
|
Loading…
Reference in New Issue
Block a user