xoxys.nginx/.drone.yml

40 lines
981 B
YAML
Raw Normal View History

---
kind: pipeline
name: deployment
platform:
os: linux
arch: amd64
workspace:
base: /drone/src
path: xoxys.nginx
steps:
2019-03-01 11:48:32 +01:00
- name: molecule
pull: always
image: xoxys/molecule:gce
commands:
2019-03-12 14:10:36 +01:00
- /bin/bash /docker-entrypoint.sh
2019-03-12 16:54:43 +01:00
- set -x
2019-03-12 16:53:13 +01:00
- "echo \"$GCE_CREDENTIALS_JSON\" > $GCE_CREDENTIALS_FILE"
2019-03-12 15:23:34 +01:00
- ls -l
2019-03-01 11:48:32 +01:00
- 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
environment:
2019-03-12 16:54:43 +01:00
GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json
2019-03-01 11:48:32 +01:00
GCE_CREDENTIALS_JSON:
from_secret: gce_credentials_json
GCE_PROJECT_ID:
from_secret: gce_project_id
GCE_SERVICE_ACCOUNT_EMAIL:
from_secret: gce_service_account_email
GCE_SSH_KEY:
from_secret: gce_ssh_key
GCE_SSH_USER:
from_secret: gce_ssh_user
2019-03-12 11:47:30 +01:00
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
2019-03-01 11:48:32 +01:00
PY_COLORS: 1