Refactor CI pipelien and enable molecule testing #1
33
.drone.yml
33
.drone.yml
@ -3,20 +3,10 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /drone/src/$DRONE_REPO_NAME
|
base: /drone/src
|
||||||
path: test
|
path: xoxys.nginx
|
||||||
|
|
||||||
# clone:
|
|
||||||
# disable: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: clone
|
|
||||||
# image: docker:git
|
|
||||||
# commands:
|
|
||||||
# - git clone $DRONE_GIT_HTTP_URL
|
|
||||||
# - cd $DRONE_REPO_NAME
|
|
||||||
# - git checkout $DRONE_COMMIT -b $DRONE_BRANCH
|
|
||||||
|
|
||||||
# - name: ansible-latest
|
# - name: ansible-latest
|
||||||
# image: python:2.7
|
# image: python:2.7
|
||||||
# pull: always
|
# pull: always
|
||||||
@ -51,15 +41,16 @@ steps:
|
|||||||
from_secret: gce_ssh_user
|
from_secret: gce_ssh_user
|
||||||
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
|
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
|
||||||
ANSIBLE_TIMEOUT: 60
|
ANSIBLE_TIMEOUT: 60
|
||||||
|
ANSIBLE_ROLES_PATH: /drone/src
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- pwd
|
||||||
- ls -la
|
- ls -la
|
||||||
# - mkdir $HOME/.ssh
|
- mkdir $HOME/.ssh
|
||||||
# - 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
|
- 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
|
||||||
# - molecule destroy --scenario-name gce-centos-7
|
- molecule destroy --scenario-name gce-centos-7
|
||||||
|
Loading…
Reference in New Issue
Block a user