Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuring galaxy-importer #1583

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion playbooks/ansible-galaxy-importer/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: If the file is missing, galaxy importer ignores the missing file, this is safe even if collections don't include the config.

# It would be better to use ~, but it's not being expanded
# GALAXY_IMPORTER_CONFIG: "~/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg"