fix drone molecule pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-05-19 16:25:22 +02:00
parent c753207ffd
commit a50329945c
2 changed files with 31 additions and 30 deletions

View File

@ -6,7 +6,7 @@ local AnsibleVersions(version="latest", package="ansible") = {
PY_COLORS: 1 PY_COLORS: 1
}, },
commands: [ commands: [
"pip install " + package + " ansible-later -qq", "pip install " + package + " ansible-later~=0.2.0 -qq",
"git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy", "git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy",
"ansible-later -c ~/policy/config.yml" "ansible-later -c ~/policy/config.yml"
], ],
@ -45,24 +45,23 @@ local PipelineDeployment = {
steps: [ steps: [
{ {
name: "molecule", name: "molecule",
image: "xoxys/molecule:gce-linux-amd64", image: "xoxys/molecule:ec2-linux-amd64",
pull: "always", pull: "always",
environment: { environment: {
GCE_SSH_KEY: { "from_secret": "gce_ssh_key" }, ANSIBLE_ROLES_PATH: "/drone/src",
GCE_SERVICE_ACCOUNT_EMAIL: { "from_secret": "gce_service_account_email" }, AWS_ACCESS_KEY_ID: { "from_secret": "aws_access_key_id" },
GCE_PROJECT_ID: { "from_secret": "gce_project_id" }, AWS_SECRET_ACCESS_KEY: { "from_secret": "aws_secret_access_key" },
GCE_CREDENTIALS_JSON: { "from_secret": "gce_credentials_json" }, AWS_REGION: "eu-central-1",
GCE_SSH_USER: { "from_secret": "gce_ssh_user" },
GCE_CREDENTIALS_FILE: "/root/ansible-testing.json",
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",
PY_COLORS: 1 PY_COLORS: 1
}, },
commands: [ commands: [
"/bin/bash /docker-entrypoint.sh", "/bin/bash /docker-entrypoint.sh",
"molecule create --scenario-name gce-centos-7", "molecule create --scenario-name ec2-centos-7",
"molecule converge --scenario-name gce-centos-7", "molecule converge --scenario-name ec2-centos-7",
"molecule verify --scenario-name gce-centos-7", "molecule verify --scenario-name ec2-centos-7",
"molecule destroy --scenario-name gce-centos-7", "molecule destroy --scenario-name ec2-centos-7",
], ],
}, },
], ],
@ -81,6 +80,9 @@ local PipelineNotifications = {
os: "linux", os: "linux",
arch: "amd64", arch: "amd64",
}, },
clone: {
disable: true,
},
steps: [ steps: [
{ {
name: "matrix", name: "matrix",

View File

@ -11,7 +11,7 @@ steps:
pull: always pull: always
image: python:3.7 image: python:3.7
commands: commands:
- pip install ansible ansible-later -qq - pip install ansible ansible-later~=0.2.0 -qq
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml - ansible-later -c ~/policy/config.yml
environment: environment:
@ -23,7 +23,7 @@ steps:
pull: always pull: always
image: python:3.7 image: python:3.7
commands: commands:
- "pip install git+https://github.com/ansible/ansible.git@devel ansible-later -qq" - "pip install git+https://github.com/ansible/ansible.git@devel ansible-later~=0.2.0 -qq"
- git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
- ansible-later -c ~/policy/config.yml - ansible-later -c ~/policy/config.yml
environment: environment:
@ -52,25 +52,21 @@ workspace:
steps: steps:
- name: molecule - name: molecule
pull: always pull: always
image: xoxys/molecule:gce-linux-amd64 image: xoxys/molecule:ec2-linux-amd64
commands: commands:
- /bin/bash /docker-entrypoint.sh - /bin/bash /docker-entrypoint.sh
- molecule create --scenario-name gce-centos-7 - molecule create --scenario-name ec2-centos-7
- molecule converge --scenario-name gce-centos-7 - molecule converge --scenario-name ec2-centos-7
- molecule verify --scenario-name gce-centos-7 - molecule verify --scenario-name ec2-centos-7
- molecule destroy --scenario-name gce-centos-7 - molecule destroy --scenario-name ec2-centos-7
environment: environment:
GCE_CREDENTIALS_FILE: /root/ansible-testing.json ANSIBLE_ROLES_PATH: /drone/src
GCE_CREDENTIALS_JSON: AWS_ACCESS_KEY_ID:
from_secret: gce_credentials_json from_secret: aws_access_key_id
GCE_PROJECT_ID: AWS_REGION: eu-central-1
from_secret: gce_project_id AWS_SECRET_ACCESS_KEY:
GCE_SERVICE_ACCOUNT_EMAIL: from_secret: aws_secret_access_key
from_secret: gce_service_account_email MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
GCE_SSH_KEY:
from_secret: gce_ssh_key
GCE_SSH_USER:
from_secret: gce_ssh_user
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 PY_COLORS: 1
@ -90,6 +86,9 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
clone:
disable: true
steps: steps:
- name: matrix - name: matrix
image: plugins/matrix image: plugins/matrix