mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-25 01:04:28 +00:00
Merge "Make publish_collection more universal"
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
vars:
|
vars:
|
||||||
collection_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/ansible-collections-openstack'].src_dir }}"
|
collection_path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
||||||
build_collection_path: /tmp/collection_built/
|
build_collection_path: /tmp/collection_built/
|
||||||
ansible_galaxy_path: "~/.local/bin/ansible-galaxy"
|
ansible_galaxy_path: "~/.local/bin/ansible-galaxy"
|
||||||
|
|
||||||
@@ -63,12 +63,15 @@
|
|||||||
url = {{ ansible_galaxy_info.url }}
|
url = {{ ansible_galaxy_info.url }}
|
||||||
token = {{ ansible_galaxy_info.token }}
|
token = {{ ansible_galaxy_info.token }}
|
||||||
|
|
||||||
|
- name: Include galaxy.yml as vars file
|
||||||
|
include_vars: "{{ collection_path }}/galaxy.yml"
|
||||||
|
|
||||||
- name: Publish collection to Ansible Galaxy / Automation Hub
|
- name: Publish collection to Ansible Galaxy / Automation Hub
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_CONFIG: "{{ _ansiblecfg_tmp.path }}"
|
ANSIBLE_CONFIG: "{{ _ansiblecfg_tmp.path }}"
|
||||||
shell: >-
|
shell: >-
|
||||||
{{ ansible_galaxy_path }} collection publish -vvv
|
{{ ansible_galaxy_path }} collection publish -vvv
|
||||||
{{ build_collection_path }}/openstack-cloud-{{ version_tag }}.tar.gz
|
{{ build_collection_path }}/{{ namespace }}-{{ name }}-{{ version_tag }}.tar.gz
|
||||||
|
|
||||||
always:
|
always:
|
||||||
- name: Shred ansible-galaxy credentials
|
- name: Shred ansible-galaxy credentials
|
||||||
|
|||||||
Reference in New Issue
Block a user