@@ -1842,71 +1842,75 @@ chef-release:
1842
1842
.trigger-dotnet-instrumentation-deployer :
1843
1843
only :
1844
1844
variables :
1845
- - $CI_COMMIT_TAG =~ /^dotnet-instrumentation-deployer-ta-v[0-9]+\.[0-9]+\.[0-9]+$/
1845
+ - $CI_COMMIT_TAG =~ /^dotnet-instrumentation-deployer-ta-v[0-9]+\.[0-9]+\.[0-9]+[^ ]* $/
1846
1846
except :
1847
1847
- schedules
1848
1848
1849
1849
build-dotnet-instrumentation-deployer :
1850
1850
extends : .trigger-dotnet-instrumentation-deployer
1851
1851
image : ' ${DOCKER_HUB_REPO}/golang:${GO_VERSION}'
1852
- stage : build-dotnet-deployer
1852
+ stage : build
1853
+ needs : []
1854
+ dependencies : []
1853
1855
before_script :
1854
1856
- cd packaging/dotnet-instr-deployer-add-on
1855
1857
script :
1858
+ - make download-dotnet-assets
1856
1859
- make build
1857
1860
artifacts :
1858
1861
paths :
1859
1862
- packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
1860
1863
1861
1864
sign-dotnet-instrumentation-deployer-exe :
1862
1865
extends :
1863
- - .trigger-filter
1866
+ - .trigger-dotnet-instrumentation-deployer
1864
1867
- .submit-signing-request
1865
- stage : sign-dotnet-deployer
1868
+ stage : sign-binaries
1866
1869
retry : 2
1867
- needs :
1870
+ dependencies :
1868
1871
- build-dotnet-instrumentation-deployer
1869
1872
variables :
1870
1873
ARTIFACT : packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/splunk_otel_dotnet_deployer.exe
1871
1874
SIGN_TYPE : WIN
1872
1875
DOWNLOAD_DIR : packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin
1873
1876
artifacts :
1874
1877
paths :
1875
- - packaging/dotnet-instr-deployer-add-on/assets/**/*
1878
+ - packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
1879
+
1876
1880
1877
1881
pack-dotnet-instrumentation-deployer :
1878
1882
extends : .trigger-dotnet-instrumentation-deployer
1879
1883
image : ' ${DOCKER_HUB_REPO}/golang:${GO_VERSION}'
1880
- stage : pack-dotnet-deployer
1881
- needs :
1884
+ stage : package
1885
+ dependencies :
1882
1886
- sign-dotnet-instrumentation-deployer-exe
1883
1887
before_script :
1884
1888
- cd packaging/dotnet-instr-deployer-add-on
1885
1889
script :
1886
1890
- make pack
1887
1891
artifacts :
1888
1892
paths :
1893
+ - packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
1889
1894
- packaging/dotnet-instr-deployer-add-on/out/distribution/splunk_otel_dotnet_deployer.tgz
1890
1895
1891
1896
dotnet-instrumentation-deployer-release :
1892
- extends : .trigger-dotnet-instrumentation-deployer
1893
- image : ' ${DOCKER_HUB_REPO}/golang:${GO_VERSION}'
1894
- stage : release-dotnet-deployer
1895
- needs :
1896
- - pack-dotnet-instrumentation-deployer
1897
- before_script :
1898
- - cd packaging/dotnet-instr-deployer-add-on
1897
+ extends :
1898
+ - .trigger-dotnet-instrumentation-deployer
1899
+ - .go-cache # Use this image since this job uses the ghr tool
1900
+ stage : github-release
1899
1901
dependencies :
1900
- - dotnet-instrumentation-deployer-builder
1902
+ - pack- dotnet-instrumentation-deployer
1901
1903
script :
1904
+ - export
1905
+ - cd packaging/dotnet-instr-deployer-add-on
1902
1906
- pushd out/distribution/ && shasum -a 256 * > checksums.txt && popd
1903
1907
- |
1904
1908
set -e
1905
1909
if [[ "${CI_COMMIT_TAG:-}" =~ ^dotnet-instrumentation-deployer-ta-v([0-9]+\.[0-9]+\.[0-9]+[^ ]*) ]]; then
1906
1910
VERSION=${BASH_REMATCH[1]}
1907
1911
VERSION_CHANGELOG="$(awk -v version="$VERSION" '/^## / { if (p) { exit }; if ($2 == version) { p=1; next } } p && NF' CHANGELOG.md)"
1908
1912
SPLUNK_OTEL_DOTNET_VERSION=$(grep -oP 'version = \K.*' assets/windows_x86_64/bin/Splunk.OTel.DotNet.psm1 | tr -d '"')
1909
- RELEASE_NOTES=$(echo -e "$RELEASE_NOTES \n\nShipping Splunk OpenTelemetry .NET $SPLUNK_OTEL_DOTNET_VERSION")
1913
+ RELEASE_NOTES=$(echo -e "$VERSION_CHANGELOG \n\nShipping Splunk OpenTelemetry .NET $SPLUNK_OTEL_DOTNET_VERSION")
1910
1914
ghr -t "$GITHUB_TOKEN" -u signalfx -r splunk-otel-collector -prerelease -draft -n "Splunk OpenTelemetry .NET Deployer Technical Add-On v$VERSION" -b "$RELEASE_NOTES" -replace "$CI_COMMIT_TAG" out/distribution/
1911
1915
else
1912
1916
echo "Failed to get version from $CI_COMMIT_TAG"
0 commit comments