strip prefix from galaxy version
This commit is contained in:
parent
3a0adba650
commit
9ddff80af3
@ -72,7 +72,8 @@ 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",
|
'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',
|
'pip install ansible -qq',
|
||||||
'ansible-galaxy collection build --output-path dist/',
|
'ansible-galaxy collection build --output-path dist/',
|
||||||
],
|
],
|
||||||
|
@ -95,7 +95,8 @@ 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"
|
- 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
|
- pip install ansible -qq
|
||||||
- ansible-galaxy collection build --output-path dist/
|
- ansible-galaxy collection build --output-path dist/
|
||||||
|
|
||||||
@ -200,6 +201,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: fed4b9e00a0d6ad43024aaad5fda6bf4c6eb3dfe3b3fabe8c03a753aee642f3a
|
hmac: 3755090863d1c4215ec5fce44c2e8efa825bda82afac5f2de4132bf4bf18fc2e
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user