Refactor CI pipelien and enable molecule testing #1
20
.drone.yml
20
.drone.yml
@ -23,16 +23,22 @@ steps:
|
|||||||
|
|
||||||
- name: molecule
|
- name: molecule
|
||||||
image: quay.io/ansible/molecule
|
image: quay.io/ansible/molecule
|
||||||
#image: alpine
|
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
MY_SECRET:
|
GCE_SSH_KEY:
|
||||||
from_secret: my_secret
|
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:
|
commands:
|
||||||
- mkdir $HOME/.ssh
|
- mkdir $HOME/.ssh
|
||||||
- echo $MY_SECRET > $HOME/.ssh/google_compute_engine
|
- echo $GCE_SSH_KEY > $HOME/.ssh/google_compute_engine
|
||||||
- cat $HOME/.ssh/google_compute_engine
|
- echo $GCE_CREDENTIAL_JSON > $GCE_CREDENTIALS_FILE
|
||||||
# - 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
|
||||||
# - molecule destroy --scenario-name gce-centos-7
|
- molecule destroy --scenario-name gce-centos-7
|
||||||
|
Loading…
Reference in New Issue
Block a user