strip prefix from galaxy version
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2021-03-27 15:00:02 +01:00
parent 3a0adba650
commit 9ddff80af3
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 5 additions and 3 deletions

View File

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

View File

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