1
- workflow :
2
- rules :
3
- - if : ' $CI_COMMIT_TAG =~ /^v/'
1
+ include :
2
+ # repo: https://cd.splunkdev.com/core-ee/signing/api-integration/-/tree/develop/
3
+ - project : core-ee/signing/api-integration
4
+ ref : develop
5
+ file : /templates/.sign-client.yml
4
6
5
7
stages :
6
8
- build
7
- - verify
9
+ - sign
10
+ - checksum
11
+ - checksum-sign
8
12
9
13
linux-build :
10
14
stage : build
@@ -48,30 +52,67 @@ linux-build:
48
52
# - tracer/bin/artifacts/nuget/SignalFx.NET.Tracing.Azure.Site.Extension.*.nupkg
49
53
# - tracer/bin/artifacts/*/en-us
50
54
51
- verify-artifacts :
52
- stage : verify
55
+ sign-deb :
56
+ stage : sign
57
+ extends : .submit-request
58
+ dependencies :
59
+ - linux-build
60
+ before_script :
61
+ - cp -vfp $(ls dist/*.deb) package.deb
62
+ after_script :
63
+ - mkdir signed
64
+ - mv -vf tmp/package.deb "signed/$(basename $(ls dist/*.deb))"
53
65
variables :
54
- dotnetSdkVersion : 6.0.200
55
- script :
56
- - |
57
- rm .dockerignore
58
- - |
59
- docker build \
60
- --build-arg DOTNETSDK_VERSION=${dotnetSdkVersion} \
61
- --tag splunk-trace-dotnet/checksums \
62
- --file "./tracer/build/_build/docker/dotnet.dockerfile" \
63
- .
64
- - |
65
- docker run \
66
- --env artifacts=/project/dist \
67
- --name checksums \
68
- splunk-trace-dotnet/checksums \
69
- tracer/build.sh ChecksumArtifacts
70
- - |
71
- docker cp checksums:/project/dist/checksums.txt dist/checksums.txt
66
+ PROJECT : signalfx-dotnet-tracing
67
+ ARTIFACT : package.deb
68
+ SIGN_TYPE : DEB
69
+ DOWNLOAD_DIR : tmp
70
+ REPO_NAME : releng # this env var should be not needed in future
71
+ REPO_PATH : signalfx-dotnet-tracing # this env var should be not needed in future
72
+ artifacts :
73
+ paths :
74
+ - signed/
75
+
76
+ sign-rpm :
77
+ stage : sign
78
+ extends : .submit-request
72
79
dependencies :
73
80
- linux-build
81
+ before_script :
82
+ - cp -vfp $(ls dist/*.rpm) package.rpm
83
+ after_script :
84
+ - mkdir signed
85
+ - mv -vf tmp/package.rpm "signed/$(basename $(ls dist/*.rpm))"
86
+ variables :
87
+ PROJECT : signalfx-dotnet-tracing
88
+ ARTIFACT : package.rpm
89
+ SIGN_TYPE : RPM
90
+ DOWNLOAD_DIR : tmp
91
+ REPO_NAME : releng # this env var should be not needed in future
92
+ REPO_PATH : signalfx-dotnet-tracing # this env var should be not needed in future
93
+ artifacts :
94
+ paths :
95
+ - signed/
96
+
97
+ checksums :
98
+ stage : checksum
99
+ script :
100
+ - cp -vnpr dist/. signed # copy artifacts that are not signed
101
+ - pushd signed && shasum -a 256 * > checksums.txt && popd
102
+ artifacts :
103
+ paths :
104
+ - signed/
105
+
106
+ checksums-sign :
107
+ stage : checksum-sign
108
+ extends : .submit-request
109
+ variables :
110
+ PROJECT : signalfx-dotnet-tracing
111
+ ARTIFACT : signed/checksums.txt
112
+ SIGN_TYPE : GPG
113
+ DOWNLOAD_DIR : signed
114
+ REPO_NAME : releng # this env var should be not needed in future
115
+ REPO_PATH : signalfx-dotnet-tracing # this env var should be not needed in future
74
116
artifacts :
75
117
paths :
76
- - dist/checksums.txt
77
-
118
+ - signed/
0 commit comments