Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v prefix from plugin version on build #2540

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

matiasb
Copy link
Contributor

@matiasb matiasb commented Jul 14, 2023

Related to #458

Change version naming for plugin and docker releases to drop the v prefix (ie. 1.2.3 instead of v1.2.3).
Update both to keep consistency between plugin and engine versions, which are also checked to match.

@matiasb matiasb added the pr:no public docs Added to a PR that does not require public documentation updates label Jul 14, 2023
@matiasb matiasb force-pushed the matiasb/remove-v-plugin-version branch 3 times, most recently from 6c56111 to bef064e Compare July 14, 2023 20:40
@matiasb matiasb force-pushed the matiasb/remove-v-plugin-version branch from bef064e to da9df68 Compare July 17, 2023 13:34
@matiasb matiasb marked this pull request as ready for review July 17, 2023 13:50
@matiasb matiasb requested a review from a team July 17, 2023 13:50
@@ -10,7 +10,7 @@ steps:
- apt-get update
- apt-get --assume-yes install jq
- cd grafana-plugin/
- if [ -z "$DRONE_TAG" ]; then echo "No tag, not modifying version"; else jq '.version="${DRONE_TAG}"' package.json > package.new && mv package.new package.json && jq '.version' package.json; fi
- if [ -z "$DRONE_TAG" ]; then echo "No tag, not modifying version"; else jq ".version=\"${DRONE_TAG#v}\"" package.json > package.new && mv package.new package.json && jq '.version' package.json; fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting bash variable substitution trick. TIL

@joeyorlando joeyorlando added this pull request to the merge queue Jul 17, 2023
Merged via the queue into dev with commit 2aab2a3 Jul 17, 2023
@joeyorlando joeyorlando deleted the matiasb/remove-v-plugin-version branch July 17, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants