test with custom molecule image
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
5ff10d4f09
commit
f5309db299
14
.drone.yml
14
.drone.yml
@ -25,15 +25,8 @@ steps:
|
|||||||
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
|
||||||
# depends_on: [ clone ]
|
# depends_on: [ clone ]
|
||||||
|
|
||||||
- name: dependencies
|
|
||||||
image: docker:git
|
|
||||||
commands:
|
|
||||||
- pwd
|
|
||||||
- mkdir -p ./library/
|
|
||||||
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
|
|
||||||
|
|
||||||
- name: molecule
|
- name: molecule
|
||||||
image: quay.io/ansible/molecule
|
image: xoxys/molecule:gce
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GCE_SSH_KEY:
|
GCE_SSH_KEY:
|
||||||
@ -50,12 +43,11 @@ steps:
|
|||||||
ANSIBLE_TIMEOUT: 60
|
ANSIBLE_TIMEOUT: 60
|
||||||
ANSIBLE_ROLES_PATH: /drone/src
|
ANSIBLE_ROLES_PATH: /drone/src
|
||||||
commands:
|
commands:
|
||||||
- ansible-doc -t module iptables_raw
|
- mkdir ./library/
|
||||||
- mkdir $HOME/.ssh
|
- git clone https://gitea.rknet.org/ansible/custom_modules ./library/
|
||||||
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
- echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
||||||
- chmod 600 $HOME/.ssh/google_compute_engine
|
- chmod 600 $HOME/.ssh/google_compute_engine
|
||||||
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
|
- echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json
|
||||||
- pip install apache-libcloud pycrypto --user
|
|
||||||
- molecule create --scenario-name gce-centos-7
|
- molecule create --scenario-name gce-centos-7
|
||||||
- molecule converge --scenario-name gce-centos-7
|
- molecule converge --scenario-name gce-centos-7
|
||||||
- molecule verify --scenario-name gce-centos-7
|
- molecule verify --scenario-name gce-centos-7
|
||||||
|
Loading…
Reference in New Issue
Block a user