From 4c86a9700fa39ffcf07700a4d972a599e36face9 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Tue, 28 Jun 2022 12:21:28 +0200 Subject: [PATCH] Support configuring galaxy-importer --- playbooks/ansible-galaxy-importer/run.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playbooks/ansible-galaxy-importer/run.yaml b/playbooks/ansible-galaxy-importer/run.yaml index dccbd3cd0..4d16de95e 100644 --- a/playbooks/ansible-galaxy-importer/run.yaml +++ b/playbooks/ansible-galaxy-importer/run.yaml @@ -10,7 +10,12 @@ include_vars: file: '{{ _fetch.dest }}' name: galaxy_info + - name: Confirm collection can be imported into galaxy args: chdir: "~/{{ zuul.projects['github.com/ansible-network/releases'].src_dir }}" - shell: "source .tox/venv/bin/activate; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz" + shell: "source .tox/venv/bin/activate ; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz" + environment: + GALAXY_IMPORTER_CONFIG: "/home/zuul/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg" + # It would be better to use ~, but it's not being expanded + # GALAXY_IMPORTER_CONFIG: "~/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg"