fix molecule
This commit is contained in:
parent
b0f9579a08
commit
6fb0f14b8d
|
@ -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',
|
||||||
],
|
],
|
||||||
|
@ -31,15 +31,14 @@ local PipelineDeployment(scenario='{{ cookiecutter.molecule_scenario | replace("
|
||||||
},
|
},
|
||||||
workspace: {
|
workspace: {
|
||||||
base: '/drone/src',
|
base: '/drone/src',
|
||||||
path: '{{ cookiecutter.author }}.{{ cookiecutter.role_name }}',
|
path: '${DRONE_REPO_NAME}',
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'ansible-molecule',
|
name: 'ansible-molecule',
|
||||||
image: 'xoxys/molecule:latest',
|
image: 'xoxys/molecule:3',
|
||||||
environment: {
|
environment: {
|
||||||
DO_API_KEY: { from_secret: 'do_api_key' },
|
DO_API_KEY: { from_secret: 'do_api_key' },
|
||||||
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',
|
||||||
},
|
},
|
||||||
|
@ -66,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,
|
||||||
|
@ -78,9 +77,9 @@ local PipelineDocumentation = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'publish',
|
name: 'publish',
|
||||||
image: 'plugins/gh-pages:latest',
|
image: 'plugins/gh-pages',
|
||||||
settings: {
|
settings: {
|
||||||
remote_url: 'https://gitea.rknet.org/ansible/{{ cookiecutter.author }}.{{ cookiecutter.role_name }}',
|
remote_url: 'https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}',
|
||||||
netrc_machine: 'gitea.rknet.org',
|
netrc_machine: 'gitea.rknet.org',
|
||||||
username: { from_secret: 'gitea_username' },
|
username: { from_secret: 'gitea_username' },
|
||||||
password: { from_secret: 'gitea_token' },
|
password: { from_secret: 'gitea_token' },
|
||||||
|
|
|
@ -18,4 +18,4 @@ galaxy_info:
|
||||||
versions:
|
versions:
|
||||||
- 7
|
- 7
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
dependencies:
|
dependencies: []
|
||||||
|
|
|
@ -2,23 +2,15 @@
|
||||||
dependency:
|
dependency:
|
||||||
name: galaxy
|
name: galaxy
|
||||||
driver:
|
driver:
|
||||||
name: digitalocean
|
name: delegated
|
||||||
platforms:
|
platforms:
|
||||||
- name: "{{ cookiecutter.molecule_scenario | replace('-', '') }}-{{ cookiecutter.role_name | replace('_', '-') }}"
|
- name: {{ cookiecutter.molecule_scenario | replace("-", "") }}-{{ cookiecutter.role_name | replace("_", "-") }}
|
||||||
region_id: fra1
|
region_id: fra1
|
||||||
image_id: "{{ cookiecutter.molecule_scenario }}-x64"
|
image_id: {{ cookiecutter.molecule_scenario }}-x64
|
||||||
size_id: "{{ cookiecutter.molecule_machine_size }}"
|
size_id: {{ cookiecutter.molecule_machine_size }}
|
||||||
lint:
|
lint: |
|
||||||
name: yamllint
|
flake8 --max-line-length=99
|
||||||
enabled: False
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
lint:
|
|
||||||
name: ansible-lint
|
|
||||||
enabled: False
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
options:
|
|
||||||
max-line-length: 120
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user