mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-08 14:23:03 +00:00
Merge "Change the pipeline of releasing to tag pipeline"
This commit is contained in:
@@ -453,6 +453,6 @@
|
|||||||
- ansible-collections-openstack-functional-devstack-rocky-ansible-2.11
|
- ansible-collections-openstack-functional-devstack-rocky-ansible-2.11
|
||||||
- ansible-collections-openstack-functional-devstack-queens-ansible-devel
|
- ansible-collections-openstack-functional-devstack-queens-ansible-devel
|
||||||
|
|
||||||
pre-release:
|
tag:
|
||||||
jobs:
|
jobs:
|
||||||
- ansible-collections-openstack-release
|
- ansible-collections-openstack-release
|
||||||
|
|||||||
@@ -24,6 +24,20 @@
|
|||||||
msg: "No tag was found in Zuul vars!"
|
msg: "No tag was found in Zuul vars!"
|
||||||
when: version_tag == 'no_version'
|
when: version_tag == 'no_version'
|
||||||
|
|
||||||
|
# Ansible Galaxy can accept only pure semver versions
|
||||||
|
# see https://semver.org for details
|
||||||
|
- name: Check that tag is proper semver
|
||||||
|
debug:
|
||||||
|
msg: >-
|
||||||
|
{{ version_tag is version('999.999.999', 'lt', version_type='semver') }}
|
||||||
|
ignore_errors: true
|
||||||
|
register: test_semver
|
||||||
|
|
||||||
|
- name: Fail if tag is not proper semver
|
||||||
|
fail:
|
||||||
|
msg: "Error is: {{ test_semver.msg }}"
|
||||||
|
when: test_semver is failed
|
||||||
|
|
||||||
- name: Create a directory for collection
|
- name: Create a directory for collection
|
||||||
file:
|
file:
|
||||||
state: "{{ item }}"
|
state: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user