Skip to content

Commit 0ce7b0d

Browse files
authored
Adding platforms variable
Allowing usage of different platforms for offlinization bundling of the buildpack.
1 parent fe26136 commit 0ce7b0d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rakelib/package.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ def self.version
7373

7474
BUILDPACK_VERSION = JavaBuildpack::BuildpackVersion.new(false).freeze
7575

76-
PLATFORMS = %w[bionic jammy].freeze
76+
PLATFORMS = %w[]
77+
platform_var = ENV.fetch('PLATFORMS', 'bionic')
78+
if platform_var != 'bionic'
79+
platform_var = platform_var.split(',')
80+
(PLATFORMS << platform_var).flatten!.uniq!
81+
else
82+
PLATFORMS << platform_var
83+
end
7784

7885
STAGING_DIR = "#{BUILD_DIR}/staging".freeze
7986

0 commit comments

Comments
 (0)