Skip to content

Commit 13dc90f

Browse files
authored
Merge pull request #73 from OpenVoxProject/ezbakever
Allow override of ezbake version and fix ezbake ref passthrough
2 parents 1017e66 + 502ac22 commit 13dc90f

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,22 @@ on:
1818
description: 'A comma-separated list of rpm-based platforms to build for, excluding the architecture (e.g. el-9,amazon-2023). Do not include spaces. If not provided, will use the default list of platforms supported by OpenVox Server and DB.'
1919
required: false
2020
type: string
21-
21+
ezbake-ref:
22+
description: |-
23+
Branch/tag from ezbake that will be used for openvoxdb/server builds.
24+
type: string
25+
default: 'main'
26+
ezbake-ver:
27+
description: 'The version specified in project.clj in the given ezbake-ref. Will default to the version found in project.clj in this repo if not specified.'
28+
type: string
29+
required: false
2230
jobs:
2331
build:
2432
uses: 'openvoxproject/shared-actions/.github/workflows/build_ezbake.yml@main'
2533
with:
2634
ref: ${{ inputs.ref }}
2735
deb_platform_list: ${{ inputs.deb_platform_list }}
2836
rpm_platform_list: ${{ inputs.rpm_platform_list }}
37+
ezbake-ref: ${{ inputs.ezbake-ref }}
38+
ezbake-ver: ${{ inputs.ezbake-ver }}
2939
secrets: inherit

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
;; in the final package.
269269
[puppetlabs/puppetdb ~pdb-version]]
270270
:name "puppetdb"
271-
:plugins [[puppetlabs/lein-ezbake "3.0.1-SNAPSHOT"]]}
271+
:plugins [[puppetlabs/lein-ezbake ~(or (System/getenv "EZBAKE_VERSION") "3.0.1-SNAPSHOT")]]}
272272
:testutils {:source-paths ^:replace ["test"]
273273
:resource-paths ^:replace []
274274
;; Something else may need adjustment, but

tasks/build.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ namespace :vox do
7575
run("cd /ezbake && lein install")
7676

7777
puts "Building openvoxdb"
78+
ezbake_version_var = ENV['EZBAKE_VERSION'] ? "EZBAKE_VERSION=#{ENV['EZBAKE_VERSION']}" : ''
7879
run("cd /code && rm -rf ruby && rm -rf output && bundle install --without test && lein install")
79-
run("cd /code && COW=\"#{@debs}\" MOCK=\"#{@rpms}\" GEM_SOURCE='https://rubygems.org' EZBAKE_ALLOW_UNREPRODUCIBLE_BUILDS=true EZBAKE_NODEPLOY=true LEIN_PROFILES=ezbake lein with-profile user,ezbake,provided,internal ezbake local-build")
80+
run("cd /code && COW=\"#{@debs}\" MOCK=\"#{@rpms}\" GEM_SOURCE='https://rubygems.org' #{ezbake_version_var} EZBAKE_ALLOW_UNREPRODUCIBLE_BUILDS=true EZBAKE_NODEPLOY=true LEIN_PROFILES=ezbake lein with-profile user,ezbake,provided,internal ezbake local-build")
8081
run_command("sudo chown -R $USER output", print_command: true)
8182
Dir.glob('output/**/*i386*').each { |f| FileUtils.rm_rf(f) }
8283
Dir.glob('output/puppetdb-*.tar.gz').each { |f| FileUtils.mv(f, f.sub('puppetdb','openvoxdb'))}

0 commit comments

Comments
 (0)