From 427082f3cef2304196f10b9fb37c3eba293a40ec Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 27 Feb 2019 12:04:35 +0100 Subject: [PATCH] test_x --- .drone.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3865d50..e6b5e63 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,16 +23,22 @@ steps: - name: molecule image: quay.io/ansible/molecule - #image: alpine pull: always environment: - MY_SECRET: - from_secret: my_secret + GCE_SSH_KEY: + from_secret: gce_ssh_key + GCE_SERVICE_ACCOUNT_EMAIL: + from_secret: gce_service_account_email + GCE_PROJECT_ID: + from_secret: gce_project_id + GCE_CREDENTIALS_JSON: + from_secret: gce_credentials_json + GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json commands: - mkdir $HOME/.ssh - - echo $MY_SECRET > $HOME/.ssh/google_compute_engine - - cat $HOME/.ssh/google_compute_engine - # - molecule create --scenario-name gce-centos-7 + - echo $GCE_SSH_KEY > $HOME/.ssh/google_compute_engine + - echo $GCE_CREDENTIAL_JSON > $GCE_CREDENTIALS_FILE + - molecule create --scenario-name gce-centos-7 # - molecule converge --scenario-name gce-centos-7 # - molecule verify --scenario-name gce-centos-7 - # - molecule destroy --scenario-name gce-centos-7 + - molecule destroy --scenario-name gce-centos-7