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