Skip to content

Commit

Permalink
Add the profiler deployment script to the bumping process (#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie authored Apr 21, 2022
1 parent 39c5773 commit 540b5b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/package_and_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ddprof_deploy_folder=$1
commit_sha=$2
commit_author=$3

current_profiler_version=$(sed -rn 's/constexpr auto PROFILER_VERSION = "([^"]+)";/\1/p' ../profiler/src/ProfilerEngine/Datadog.Profiler.Native/dd_profiler_version.h)
current_profiler_beta_version=$(sed -rn 's/constexpr auto PROFILER_BETA_REVISION = "([^"]+)";/\1/p' ../profiler/src/ProfilerEngine/Datadog.Profiler.Native/dd_profiler_version.h)
profiler_version=v${current_profiler_version}.${current_profiler_beta_version:=0}_$(date -u +%G%m%d%H%M%S)
current_profiler_version="2.7.0"
current_profiler_beta_version="2"
profiler_version=v${current_profiler_version}.${current_profiler_beta_version}_$(date -u +%G%m%d%H%M%S)

## Create master.index.txt file
cat <<- EOF > master.index.txt
Expand Down
4 changes: 4 additions & 0 deletions tracer/build/_build/PrepareRelease/SetAllVersions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ public void Run()
"../profiler/src/ProfilerEngine/Datadog.Profiler.Native/dd_profiler_version.h",
text => FullVersionReplace(text, "."));

SynchronizeVersion(
"../.github/scripts/package_and_deploy.sh",
text => FullVersionReplace(text, ".", prefix: "current_profiler_version=\""));

SynchronizeVersion(
"../profiler/src/ProfilerEngine/ProductVersion.props",
PropsVersionReplace);
Expand Down

0 comments on commit 540b5b9

Please sign in to comment.