From f5309db299fe51d55cee1e168179008e8304c75f Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 28 Feb 2019 11:27:56 +0100 Subject: [PATCH] test with custom molecule image --- .drone.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3262196..4e110b3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,15 +25,8 @@ steps: # - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini # 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 - image: quay.io/ansible/molecule + image: xoxys/molecule:gce pull: always environment: GCE_SSH_KEY: @@ -50,12 +43,11 @@ steps: ANSIBLE_TIMEOUT: 60 ANSIBLE_ROLES_PATH: /drone/src commands: - - ansible-doc -t module iptables_raw - - mkdir $HOME/.ssh + - mkdir ./library/ + - git clone https://gitea.rknet.org/ansible/custom_modules ./library/ - echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine - chmod 600 $HOME/.ssh/google_compute_engine - echo "$GCE_CREDENTIALS_JSON" > $HOME/ansible-testing.json - - pip install apache-libcloud pycrypto --user - molecule create --scenario-name gce-centos-7 - molecule converge --scenario-name gce-centos-7 - molecule verify --scenario-name gce-centos-7