upgrade to molecule v3
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6817f24ef0
commit
bf5fadc8e7
@ -8,7 +8,7 @@ local PipelineLinting = {
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'ansible-later',
|
name: 'ansible-later',
|
||||||
image: 'xoxys/ansible-later:latest',
|
image: 'xoxys/ansible-later',
|
||||||
commands: [
|
commands: [
|
||||||
'ansible-later',
|
'ansible-later',
|
||||||
],
|
],
|
||||||
@ -36,10 +36,10 @@ local PipelineDeployment(scenario='centos7') = {
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'ansible-molecule',
|
name: 'ansible-molecule',
|
||||||
image: 'xoxys/molecule:latest',
|
image: 'xoxys/molecule:3',
|
||||||
|
pull: 'always',
|
||||||
environment: {
|
environment: {
|
||||||
DO_API_KEY: { from_secret: 'do_api_key' },
|
DO_API_KEY: { from_secret: 'do_api_key' },
|
||||||
USER: 'root',
|
|
||||||
MOLECULE_CUSTOM_FILTERS_REPO: 'https://gitea.rknet.org/ansible/custom_filters',
|
MOLECULE_CUSTOM_FILTERS_REPO: 'https://gitea.rknet.org/ansible/custom_filters',
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
@ -65,7 +65,7 @@ local PipelineDocumentation = {
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'generate',
|
name: 'generate',
|
||||||
image: 'xoxys/ansible-doctor:latest',
|
image: 'xoxys/ansible-doctor',
|
||||||
environment: {
|
environment: {
|
||||||
ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO',
|
ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO',
|
||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
||||||
@ -77,7 +77,7 @@ local PipelineDocumentation = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'publish',
|
name: 'publish',
|
||||||
image: 'plugins/gh-pages:latest',
|
image: 'plugins/gh-pages',
|
||||||
settings: {
|
settings: {
|
||||||
remote_url: 'https://gitea.rknet.org/ansible/xoxys.iptables',
|
remote_url: 'https://gitea.rknet.org/ansible/xoxys.iptables',
|
||||||
netrc_machine: 'gitea.rknet.org',
|
netrc_machine: 'gitea.rknet.org',
|
||||||
|
11
.drone.yml
11
.drone.yml
@ -8,7 +8,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-later
|
- name: ansible-later
|
||||||
image: xoxys/ansible-later:latest
|
image: xoxys/ansible-later
|
||||||
commands:
|
commands:
|
||||||
- ansible-later
|
- ansible-later
|
||||||
|
|
||||||
@ -35,14 +35,13 @@ workspace:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-molecule
|
- name: ansible-molecule
|
||||||
image: xoxys/molecule:latest
|
image: xoxys/molecule:3
|
||||||
commands:
|
commands:
|
||||||
- molecule test -scentos7
|
- molecule test -scentos7
|
||||||
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
|
||||||
USER: root
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -62,7 +61,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: generate
|
- name: generate
|
||||||
image: xoxys/ansible-doctor:latest
|
image: xoxys/ansible-doctor
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
||||||
@ -72,7 +71,7 @@ steps:
|
|||||||
ANSIBLE_DOCTOR_TEMPLATE: hugo-book
|
ANSIBLE_DOCTOR_TEMPLATE: hugo-book
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gh-pages:latest
|
image: plugins/gh-pages
|
||||||
settings:
|
settings:
|
||||||
netrc_machine: gitea.rknet.org
|
netrc_machine: gitea.rknet.org
|
||||||
pages_directory: _docs/
|
pages_directory: _docs/
|
||||||
@ -146,6 +145,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: b4be4a0df90ff585314553d0dfeac8735ef99a852b6643a26ca4baf77917dc62
|
hmac: 57e3f2d5f9f9becd8974d8e447e483da60545af942b411ba18014d444acdac20
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -2,24 +2,16 @@
|
|||||||
dependency:
|
dependency:
|
||||||
name: galaxy
|
name: galaxy
|
||||||
driver:
|
driver:
|
||||||
name: digitalocean
|
name: delegated
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos7-iptables
|
- name: centos7-iptables
|
||||||
region_id: fra1
|
region_id: fra1
|
||||||
image_id: centos-7-x64
|
image_id: centos-7-x64
|
||||||
size_id: s-1vcpu-1gb
|
size_id: s-1vcpu-1gb
|
||||||
lint:
|
|
||||||
name: yamllint
|
|
||||||
enabled: False
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
lint:
|
|
||||||
name: ansible-lint
|
|
||||||
enabled: False
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
lint:
|
||||||
lint:
|
lint: |
|
||||||
name: flake8
|
flake8 --max-line-length=110
|
||||||
options:
|
|
||||||
max-line-length: 120
|
|
||||||
|
Loading…
Reference in New Issue
Block a user