This commit is contained in:
parent
7952a7477b
commit
86c7aeaea8
@ -9,12 +9,8 @@ local PipelineLinting = {
|
|||||||
{
|
{
|
||||||
name: "ansible-later",
|
name: "ansible-later",
|
||||||
image: "xoxys/ansible-later:latest",
|
image: "xoxys/ansible-later:latest",
|
||||||
environment: {
|
|
||||||
PY_COLORS: 1
|
|
||||||
},
|
|
||||||
commands: [
|
commands: [
|
||||||
"git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy",
|
"ansible-later",
|
||||||
"ansible-later -c ~/policy/config.yml"
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -40,16 +36,14 @@ local PipelineDeployment = {
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: "ansible-molecule",
|
name: "ansible-molecule",
|
||||||
image: "xoxys/molecule:do-linux-amd64",
|
image: "xoxys/molecule:latest",
|
||||||
environment: {
|
environment: {
|
||||||
DO_API_KEY: { "from_secret": "do_api_key" },
|
DO_API_KEY: { "from_secret": "do_api_key" },
|
||||||
USER: "root",
|
USER: "root",
|
||||||
MOLECULE_CUSTOM_MODULES_REPO: "https://gitea.rknet.org/ansible/custom_modules",
|
MOLECULE_CUSTOM_MODULES_REPO: "https://gitea.rknet.org/ansible/custom_modules",
|
||||||
MOLECULE_CUSTOM_FILTERS_REPO: "https://gitea.rknet.org/ansible/custom_filters",
|
MOLECULE_CUSTOM_FILTERS_REPO: "https://gitea.rknet.org/ansible/custom_filters",
|
||||||
PY_COLORS: 1
|
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
"/bin/bash /docker-entrypoint.sh",
|
|
||||||
"molecule test -s default",
|
"molecule test -s default",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -78,7 +72,6 @@ local PipelineDocumentation = {
|
|||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
||||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: "molecule/",
|
ANSIBLE_DOCTOR_EXCLUDE_FILES: "molecule/",
|
||||||
ANSIBLE_DOCTOR_CUSTOM_HEADER: "HEADER.md",
|
ANSIBLE_DOCTOR_CUSTOM_HEADER: "HEADER.md",
|
||||||
PY_COLORS: 1
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
12
.drone.yml
12
.drone.yml
@ -10,10 +10,7 @@ steps:
|
|||||||
- name: ansible-later
|
- name: ansible-later
|
||||||
image: xoxys/ansible-later:latest
|
image: xoxys/ansible-later:latest
|
||||||
commands:
|
commands:
|
||||||
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
|
- ansible-later
|
||||||
- ansible-later -c ~/policy/config.yml
|
|
||||||
environment:
|
|
||||||
PY_COLORS: 1
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -38,16 +35,14 @@ workspace:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-molecule
|
- name: ansible-molecule
|
||||||
image: xoxys/molecule:do-linux-amd64
|
image: xoxys/molecule:latest
|
||||||
commands:
|
commands:
|
||||||
- /bin/bash /docker-entrypoint.sh
|
|
||||||
- molecule test -s default
|
- molecule test -s default
|
||||||
environment:
|
environment:
|
||||||
DO_API_KEY:
|
DO_API_KEY:
|
||||||
from_secret: do_api_key
|
from_secret: do_api_key
|
||||||
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
|
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
|
||||||
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
|
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
|
||||||
PY_COLORS: 1
|
|
||||||
USER: root
|
USER: root
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
@ -74,7 +69,6 @@ steps:
|
|||||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
||||||
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
||||||
PY_COLORS: 1
|
|
||||||
|
|
||||||
- name: push-to-repo
|
- name: push-to-repo
|
||||||
image: plugins/git-action:latest
|
image: plugins/git-action:latest
|
||||||
@ -143,6 +137,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 98e77b48006b6b5076441910ee51500852d8e47f484d6826deb24f7ca1ab287e
|
hmac: db6f87788142cbd67770eecb3c6fae863d810ba4484908b9041a52868b6f2609
|
||||||
|
|
||||||
...
|
...
|
||||||
|
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