ci: auto-replace version in galaxy.yml
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2021-03-27 14:35:25 +01:00
parent 12c4dc4e3b
commit b608706c74
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
3 changed files with 6 additions and 3 deletions

View File

@ -72,6 +72,7 @@ local PipelineBuild = {
name: 'build', name: 'build',
image: 'python:3.9', image: 'python:3.9',
commands: [ commands: [
"sed -i 's/version: 0.0.0/version: '\"${DRONE_TAG:-0.0.0}\"'/g' galaxy.yml",
'pip install ansible -qq', 'pip install ansible -qq',
'ansible-galaxy collection build --output-path dist/', 'ansible-galaxy collection build --output-path dist/',
], ],

View File

@ -95,6 +95,7 @@ steps:
- name: build - name: build
image: python:3.9 image: python:3.9
commands: commands:
- "sed -i 's/version: 0.0.0/version: '\"${DRONE_TAG:-0.0.0}\"'/g' galaxy.yml"
- pip install ansible -qq - pip install ansible -qq
- ansible-galaxy collection build --output-path dist/ - ansible-galaxy collection build --output-path dist/
@ -199,6 +200,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 1bd261fd58a56939db7b1e2cbccf52a5d3d43e04329da9222524fa924c9de9dc hmac: fed4b9e00a0d6ad43024aaad5fda6bf4c6eb3dfe3b3fabe8c03a753aee642f3a
... ...

View File

@ -1,7 +1,8 @@
---
namespace: xoxys namespace: xoxys
name: general name: general
version: 1.3.0 # The version is generated during the release by Drone CI.
readme: README.md version: 0.0.0
authors: authors:
- Robert Kaussow <mail@thegeeklab.de> - Robert Kaussow <mail@thegeeklab.de>
description: Custom general Ansible collection description: Custom general Ansible collection