Skip to content

Commit 54e60ad

Browse files
rwaffenbastelfreak
authored andcommitted
fix: update build process to set environment variables for local builds
1 parent 291304a commit 54e60ad

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/pr-testing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ jobs:
115115

116116
- name: build it
117117
run: bundle exec rake vox:build
118+
env:
119+
# EZBAKE_ALLOW_UNREPRODUCIBLE_BUILDS: true
120+
EZBAKE_BRANCH: no-bundle-on-local-build
121+
# EZBAKE_NODEPLOY: true
122+
EZBAKE_REPO: https://github.com/rwaffen/ezbake
123+
# LEIN_PROFILES: ezbake
118124

119125
clojure-linting:
120126
name: Clojure Linting

tasks/build.rake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ namespace :vox do
4343

4444
puts "Building openvox-server"
4545
run_command("rm -rf ruby && rm -rf output && bundle install --without test && lein install", silent: false, print_command: true)
46-
run_command('bundle list', silent: false, print_command: true)
47-
run_command('bundle info packaging', silent: false, print_command: true)
48-
# run_command('ls -la /home/runner/work/openvox-server/openvox-server/.bundle/gems/ruby/3.2.0/bundler/gems/', silent: false, print_command: true)
49-
run_command("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 ezbake local-build", silent: false, print_command: true)
46+
run_command("COW=\"#{@debs}\" MOCK=\"#{@rpms}\" EZBAKE_ALLOW_UNREPRODUCIBLE_BUILDS=true EZBAKE_NODEPLOY=true LEIN_PROFILES=ezbake lein with-profile user,ezbake,provided ezbake local-build", silent: false, print_command: true)
5047
run_command("sudo chown -R $USER output", print_command: true)
5148
Dir.glob('output/**/*i386*').each { |f| FileUtils.rm_rf(f) }
5249
Dir.glob('output/puppetserver-*.tar.gz').each { |f| FileUtils.mv(f, f.sub('puppetserver','openvox-server'))}

0 commit comments

Comments
 (0)