Skip to content

Commit d49ed9e

Browse files
authored
TOOLS-3559 Add the Augmented to all release artifacts (tarballs, debs, etc.) (#674)
This also significantly changes the release code so that the files generated by the `dist` task following the naming scheme of the file we would/will release. For non-tag builds, these files will include the git commit in their name. When we do a release, the files that we release and make available for download should only include the tag.
1 parent 323a0b0 commit d49ed9e

File tree

7 files changed

+200
-152
lines changed

7 files changed

+200
-152
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*.zip
1616

1717
/deb_build
18+
/rpm_build
1819
/purls.txt
1920
/silkbomb.env
2021
/release.*

common.yml

+17-21
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,11 @@ functions:
243243
aws_key: ${aws_key}
244244
aws_secret: ${aws_secret}
245245
local_files_include_filter:
246-
- src/github.com/mongodb/mongo-tools/release.*
247-
- src/github.com/mongodb/mongo-tools/*.deb
248-
- src/github.com/mongodb/mongo-tools/*.rpm
246+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.deb
247+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.msi
248+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.rpm
249+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.tgz
250+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.zip
249251
remote_file: mongo-tools/pkgs/${build_id}/
250252
content_type: application/octet-stream
251253
bucket: mciuploads
@@ -259,9 +261,11 @@ functions:
259261
target: src/github.com/mongodb/mongo-tools/upload.tgz
260262
source_dir: src/github.com/mongodb/mongo-tools
261263
include:
262-
- "./release.*"
263-
- "*.deb"
264-
- "*.rpm"
264+
- mongodb-database-tools*.deb
265+
- mongodb-database-tools*.msi
266+
- mongodb-database-tools*.rpm
267+
- mongodb-database-tools*.tgz
268+
- mongodb-database-tools*.zip
265269
- command: s3.put
266270
params:
267271
aws_key: ${aws_key}
@@ -311,9 +315,11 @@ functions:
311315
aws_key: ${aws_key}
312316
aws_secret: ${aws_secret}
313317
local_files_include_filter:
314-
- src/github.com/mongodb/mongo-tools/release.*
315-
- src/github.com/mongodb/mongo-tools/*.deb
316-
- src/github.com/mongodb/mongo-tools/*.rpm
318+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.deb
319+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.msi
320+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.rpm
321+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.tgz
322+
- src/github.com/mongodb/mongo-tools/mongodb-database-tools*.zip
317323
remote_file: mongo-tools/task/sign/${build_id}/
318324
bucket: mciuploads
319325
permissions: public-read
@@ -706,14 +712,6 @@ tasks:
706712
params:
707713
file: src/github.com/mongodb/mongo-tools/expansions.yml
708714
- func: "fetch dist release artifacts"
709-
- command: shell.exec
710-
params:
711-
working_dir: src/github.com/mongodb/mongo-tools
712-
script: |
713-
${_set_shell_env}
714-
${_maybe_enable_devtoolset_7}
715-
PATH=$PATH:$HOME
716-
go run release/release.go rename-release-files-for-papertrail
717715
- command: papertrail.trace
718716
params:
719717
key_id: ${papertrail_key_id}
@@ -1905,8 +1903,7 @@ buildvariants:
19051903
- name: "sign"
19061904
run_on: macos-1014-codesign
19071905
- name: "push"
1908-
run_on: rhel70-small
1909-
git_tag_only: true
1906+
run_on: rhel80-small
19101907

19111908
#######################################
19121909
# macOS ARM Buildvariant #
@@ -1923,8 +1920,7 @@ buildvariants:
19231920
- name: "sign"
19241921
run_on: macos-1014-codesign
19251922
- name: "push"
1926-
run_on: rhel70-small
1927-
git_tag_only: true
1923+
run_on: rhel80-small
19281924

19291925
#######################################
19301926
# RHEL x86_64 Buildvariants #

installer/msi/LicensingFragment.wxs

+7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@
2121
Source="$(var.SourceDir)\README.md"
2222
DiskId ="1"/>
2323
</Component>
24+
<Component Id="c_AugmentedSBOM" Guid="88fbc184-900f-4074-9fbf-5b5bfd2da5a7">
25+
<File Id="f_AugmentedSBOM"
26+
Name="$(var.AugmentedSBOMFilename)"
27+
Source="$(var.SourceDir)\$(var.AugmentedSBOMFilename)"
28+
DiskId ="1"/>
29+
</Component>
2430
</DirectoryRef>
2531

2632
<ComponentGroup Id="cg_License">
2733
<ComponentRef Id="c_Thirdparty"/>
2834
<ComponentRef Id="c_Readme"/>
2935
<ComponentRef Id="c_License"/>
36+
<ComponentRef Id="c_AugmentedSBOM"/>
3037
</ComponentGroup>
3138

3239
<WixVariable Id="WixUILicenseRtf" Value="$(var.ResourceDir)\LICENSE.rtf" />

installer/rpm/mongodb-database-tools.spec

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ rm -rf %{buildroot}
5858
%attr(0644,root,root) /usr/share/doc/mongodb-database-tools/LICENSE.md
5959
%attr(0644,root,root) /usr/share/doc/mongodb-database-tools/README.md
6060
%attr(0644,root,root) /usr/share/doc/mongodb-database-tools/THIRD-PARTY-NOTICES
61+
%attr(0644,root,root) /usr/share/doc/mongodb-database-tools/@TOOLS_BOM_FILE@
6162

6263
%pre
6364
# On install

0 commit comments

Comments
 (0)