diff --git a/.drone.jsonnet b/.drone.jsonnet index 8d80f11..5cf62c2 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -72,6 +72,7 @@ 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", 'pip install ansible -qq', 'ansible-galaxy collection build --output-path dist/', ], diff --git a/.drone.yml b/.drone.yml index 18934e9..b738bde 100644 --- a/.drone.yml +++ b/.drone.yml @@ -95,6 +95,7 @@ steps: - name: build image: python:3.9 commands: + - "sed -i 's/version: 0.0.0/version: '\"${DRONE_TAG:-0.0.0}\"'/g' galaxy.yml" - pip install ansible -qq - ansible-galaxy collection build --output-path dist/ @@ -199,6 +200,6 @@ depends_on: --- kind: signature -hmac: 1bd261fd58a56939db7b1e2cbccf52a5d3d43e04329da9222524fa924c9de9dc +hmac: fed4b9e00a0d6ad43024aaad5fda6bf4c6eb3dfe3b3fabe8c03a753aee642f3a ... diff --git a/galaxy.yml b/galaxy.yml index 6f022f9..7bae57f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,8 @@ +--- namespace: xoxys name: general -version: 1.3.0 -readme: README.md +# The version is generated during the release by Drone CI. +version: 0.0.0 authors: - Robert Kaussow description: Custom general Ansible collection