xoxys.nginx/.drone.yml

45 lines
1.5 KiB
YAML
Raw Normal View History

2019-01-12 12:49:56 +00:00
---
kind: pipeline
name: default
steps:
2019-02-26 14:13:50 +00:00
# - 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 ]
2019-01-09 19:57:15 +00:00
2019-02-26 14:13:50 +00:00
- name: molecule
2019-02-27 10:22:43 +00:00
image: quay.io/ansible/molecule
2019-01-12 12:49:56 +00:00
pull: always
2019-02-27 10:21:12 +00:00
environment:
2019-02-27 11:04:35 +00:00
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
2019-01-09 19:57:15 +00:00
commands:
2019-02-27 10:29:13 +00:00
- mkdir $HOME/.ssh
2019-02-27 11:04:35 +00:00
- echo $GCE_SSH_KEY > $HOME/.ssh/google_compute_engine
- echo $GCE_CREDENTIAL_JSON > $GCE_CREDENTIALS_FILE
- molecule create --scenario-name gce-centos-7
2019-02-27 10:11:23 +00:00
# - molecule converge --scenario-name gce-centos-7
# - molecule verify --scenario-name gce-centos-7
2019-02-27 11:04:35 +00:00
- molecule destroy --scenario-name gce-centos-7