From 36f053f79fff42319a9da97bee5fb0c023bdc932 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 22 Nov 2019 23:59:05 +0100 Subject: [PATCH] cleanup pipeline --- .drone.jsonnet | 11 ++--------- .drone.yml | 12 +++--------- .later.yml | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 .later.yml diff --git a/.drone.jsonnet b/.drone.jsonnet index a5a6337..7cba49b 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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 }, }, { diff --git a/.drone.yml b/.drone.yml index f4b4111..87d6087 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,10 +10,7 @@ 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: @@ -38,16 +35,14 @@ 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: @@ -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 @@ -143,6 +137,6 @@ depends_on: --- kind: signature -hmac: 9176038014f6601dff82cea143ccb8ca885f127bfcd991a43d110c3e644cce86 +hmac: 4810d9ec9b567c5bf8a47f3ef9d6b58a1041df2799d8574b6e8ab8c7080e562d ... diff --git a/.later.yml b/.later.yml new file mode 100644 index 0000000..45911c9 --- /dev/null +++ b/.later.yml @@ -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