Skip to content

Commit daad0ff

Browse files
committed
GitLab fixes
1 parent 067806b commit daad0ff

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.gitlab-ci.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,71 +1842,75 @@ chef-release:
18421842
.trigger-dotnet-instrumentation-deployer:
18431843
only:
18441844
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]+[^ ]*$/
18461846
except:
18471847
- schedules
18481848

18491849
build-dotnet-instrumentation-deployer:
18501850
extends: .trigger-dotnet-instrumentation-deployer
18511851
image: '${DOCKER_HUB_REPO}/golang:${GO_VERSION}'
1852-
stage: build-dotnet-deployer
1852+
stage: build
1853+
needs: []
1854+
dependencies: []
18531855
before_script:
18541856
- cd packaging/dotnet-instr-deployer-add-on
18551857
script:
1858+
- make download-dotnet-assets
18561859
- make build
18571860
artifacts:
18581861
paths:
18591862
- packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
18601863

18611864
sign-dotnet-instrumentation-deployer-exe:
18621865
extends:
1863-
- .trigger-filter
1866+
- .trigger-dotnet-instrumentation-deployer
18641867
- .submit-signing-request
1865-
stage: sign-dotnet-deployer
1868+
stage: sign-binaries
18661869
retry: 2
1867-
needs:
1870+
dependencies:
18681871
- build-dotnet-instrumentation-deployer
18691872
variables:
18701873
ARTIFACT: packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/splunk_otel_dotnet_deployer.exe
18711874
SIGN_TYPE: WIN
18721875
DOWNLOAD_DIR: packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin
18731876
artifacts:
18741877
paths:
1875-
- packaging/dotnet-instr-deployer-add-on/assets/**/*
1878+
- packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
1879+
18761880

18771881
pack-dotnet-instrumentation-deployer:
18781882
extends: .trigger-dotnet-instrumentation-deployer
18791883
image: '${DOCKER_HUB_REPO}/golang:${GO_VERSION}'
1880-
stage: pack-dotnet-deployer
1881-
needs:
1884+
stage: package
1885+
dependencies:
18821886
- sign-dotnet-instrumentation-deployer-exe
18831887
before_script:
18841888
- cd packaging/dotnet-instr-deployer-add-on
18851889
script:
18861890
- make pack
18871891
artifacts:
18881892
paths:
1893+
- packaging/dotnet-instr-deployer-add-on/assets/windows_x86_64/bin/*
18891894
- packaging/dotnet-instr-deployer-add-on/out/distribution/splunk_otel_dotnet_deployer.tgz
18901895

18911896
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
18991901
dependencies:
1900-
- dotnet-instrumentation-deployer-builder
1902+
- pack-dotnet-instrumentation-deployer
19011903
script:
1904+
- export
1905+
- cd packaging/dotnet-instr-deployer-add-on
19021906
- pushd out/distribution/ && shasum -a 256 * > checksums.txt && popd
19031907
- |
19041908
set -e
19051909
if [[ "${CI_COMMIT_TAG:-}" =~ ^dotnet-instrumentation-deployer-ta-v([0-9]+\.[0-9]+\.[0-9]+[^ ]*) ]]; then
19061910
VERSION=${BASH_REMATCH[1]}
19071911
VERSION_CHANGELOG="$(awk -v version="$VERSION" '/^## / { if (p) { exit }; if ($2 == version) { p=1; next } } p && NF' CHANGELOG.md)"
19081912
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")
19101914
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/
19111915
else
19121916
echo "Failed to get version from $CI_COMMIT_TAG"

0 commit comments

Comments
 (0)