From 4ec9af9537744588995fb9fd94a35172069dd0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 27 Apr 2018 09:42:48 +0200 Subject: [PATCH] first commit --- publish-api.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 publish-api.yaml diff --git a/publish-api.yaml b/publish-api.yaml new file mode 100644 index 0000000..4531f2b --- /dev/null +++ b/publish-api.yaml @@ -0,0 +1,23 @@ +--- + +- name: Deploy an API to a 3scale SaaS instance, with self-managed APIcasts + hosts: threescale + gather_facts: no + pre_tasks: + + - assert: + that: + - "git_repo is defined" + + - name: Clone the git repo containing the API Definition + git: + repo: '{{ git_repo }}' + dest: '{{ playbook_dir }}/api' + version: '{{ git_branch|default(''master'') }}' + delegate_to: localhost + + - set_fact: + threescale_cicd_openapi_file: '{{ playbook_dir }}/api/{{ openapi_file|default(''openapi-spec.yaml'') }}' + + roles: + - nmasse-itix.threescale-cicd