Skip to content

Commit

Permalink
Merge pull request #13 from toozej/fix_amazon_linux_asset_filters
Browse files Browse the repository at this point in the history
fix Amazon Linux and Ubuntu asset filters
  • Loading branch information
Todd Campbell authored Mar 23, 2020
2 parents da830b3 + 4586505 commit 69b7bb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .bonsai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ builds:
filter:
- "entity.system.os == 'linux'"
- "entity.system.platform == 'amazon'"
- "entity.system.platform_version.split('.')[0] == '2018'"
# Amazon Linux 1 uses versions of the format YYYY.MM starting from 2011 and going until 2018
# thus we are matching if the YYYY portion of platform_version contains '201'
- "entity.system.platform_version.split('.')[0].indexOf('201') !== -1"
- "entity.system.arch == 'amd64'"

- platform: "amazon2"
Expand Down Expand Up @@ -96,7 +98,7 @@ builds:
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.platform_family == 'ubuntu'"
- "entity.system.platform == 'ubuntu'"
- "entity.system.platform_version.split('.')[0] == '16'"
- "entity.system.arch == 'amd64'"

Expand All @@ -106,6 +108,6 @@ builds:
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.platform_family == 'ubuntu'"
- "entity.system.platform == 'ubuntu'"
- "entity.system.platform_version.split('.')[0] == '18'"
- "entity.system.arch == 'amd64'"

0 comments on commit 69b7bb9

Please sign in to comment.