Skip to content

Commit c2db33a

Browse files
authored
Merge pull request #254 from slauger/fix/snapshot-tarball-upload
fix: include tarballs in snapshot artifact upload by matching on version
2 parents 149b95c + f488ad1 commit c2db33a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

rakelib/upload.rake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ namespace :vox do
3838
glob += "#{os}*"
3939
end
4040
files = Dir.glob(glob)
41+
42+
# Tarballs use a different version format than RPM/DEB packages.
43+
# ezbake generates the tarball name from the git tag (e.g. 8.13.0.SNAPSHOT.2026...)
44+
# while RPM/DEB use the version-release format (e.g. 8.13.0-0.1SNAPSHOT.2026...).
45+
# Match tarballs separately by version to cover both formats.
46+
unless os
47+
tarball_files = Dir.glob("#{__dir__}/../output/openvoxdb-#{version}*.tar.gz")
48+
files = (files + tarball_files).uniq
49+
end
50+
4151
abort 'No files for the given tag found in the output directory.' if files.empty?
4252

4353
path = "s3://#{bucket}/#{component}/#{tag}"

0 commit comments

Comments
 (0)