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

Add support for v2 in the release workflow #766

Merged
merged 8 commits into from
Nov 3, 2024

Conversation

yurishkuro
Copy link
Member

Which problem is this PR solving?

Description of the changes

  • Change release GH workflow from automatic to manual trigger
  • Add support for dual v1/v2 release

How was this change tested?

$ DRY_RUN=true bash5 scripts/release.sh 1.64.0 2.0.0
+ safe_checkout_main
+ local checkoutBranch=main
+ [[ true = \t\r\u\e ]]
+ echo 'Skipping branch validation'
Skipping branch validation
+ return
+ for version in "${version_v1}" "${version_v2}"
++ echo 1.64.0
++ sed 's/\.[[:digit:]]$//'
+ versionMajorMinor=1.64
+ echo 'Creating new documentation for 1.64.0 (1.64)'
Creating new documentation for 1.64.0 (1.64)
+ var_suffix=
+ [[ 1.64 == 2* ]]
+ cp -r ./content/docs/next-release/ ./content/docs/1.64
++ grep -E 'versions *=' config.toml
+ versions='  versions = ["1.62","1.61","1.60","1.59","1.58","1.57","1.56","1.55","1.54","1.53","1.52"]'
+ [[   versions = ["1.62","1.61","1.60","1.59","1.58","1.57","1.56","1.55","1.54","1.53","1.52"] == *\1\.\6\4* ]]
+ sed -i -e 's/latest *=.*$/latest = "1.64"/' config.toml
+ sed -i -e 's/binariesLatest *=.*$/binariesLatest = "1.64.0"/' config.toml
+ sed -i -e 's/versions *= *\[/versions = \["1.64"\,/' config.toml
+ for version in "${version_v1}" "${version_v2}"
++ echo 2.0.0
++ sed 's/\.[[:digit:]]$//'
+ versionMajorMinor=2.0
+ echo 'Creating new documentation for 2.0.0 (2.0)'
Creating new documentation for 2.0.0 (2.0)
+ var_suffix=
+ [[ 2.0 == 2* ]]
+ cp -r ./content/docs/next-release-v2/ ./content/docs/2.0
+ var_suffix=V2
++ grep -E 'versionsV2 *=' config.toml
+ versions='  versionsV2 = []'
+ [[   versionsV2 = [] == *\2\.\0* ]]
+ sed -i -e 's/latestV2 *=.*$/latestV2 = "2.0"/' config.toml
+ sed -i -e 's/binariesLatestV2 *=.*$/binariesLatestV2 = "2.0.0"/' config.toml
+ sed -i -e 's/versionsV2 *= *\[/versionsV2 = \["2.0"\,/' config.toml
+ [[ true = \t\r\u\e ]]
+ echo 'Not committing changes because DRY_RUN=true'
Not committing changes because DRY_RUN=true
+ exit 0

Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Copy link

netlify bot commented Nov 3, 2024

Deploy Preview for romantic-neumann-1959d7 ready!

Name Link
🔨 Latest commit 4f75449
🔍 Latest deploy log https://app.netlify.com/sites/romantic-neumann-1959d7/deploys/672702f6b01dfc0008aead8e
😎 Deploy Preview https://deploy-preview-766--romantic-neumann-1959d7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
@yurishkuro yurishkuro merged commit 0c0d574 into jaegertracing:main Nov 3, 2024
9 of 10 checks passed
@yurishkuro yurishkuro deleted the v2-release-workflow branch November 3, 2024 04:59
@yurishkuro yurishkuro mentioned this pull request Nov 3, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant