xoxys.nginx/.drone.yml
Robert Kaussow a1888e7dd9
All checks were successful
continuous-integration/drone/push Build is passing
add dynamc repo name to workspace
2019-02-27 22:48:16 +01:00

66 lines
1.9 KiB
YAML

---
kind: pipeline
name: default
workspace:
base: /drone/src
path: $DRONE_REPO_NAME
# clone:
# disable: true
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
# image: python:2.7
# pull: always
# commands:
# - pip install ansible ansible-later -q
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
# depends_on: [ clone ]
# - name: ansible-master
# image: python:2.7
# pull: always
# commands:
# - pip install ansible ansible-later -q
# - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy
# - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini
# depends_on: [ clone ]
- name: molecule
image: quay.io/ansible/molecule
pull: always
environment:
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_SSH_USER:
from_secret: gce_ssh_user
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
ANSIBLE_TIMEOUT: 60
commands:
- pwd
- ls -la
# - mkdir $HOME/.ssh
# - 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
# - molecule destroy --scenario-name gce-centos-7