Skip to content

Commit

Permalink
use devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Oct 26, 2023
1 parent 0a4f434 commit afe3382
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
16 changes: 12 additions & 4 deletions example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ export const execLane = async (name: string, src = ".") => {

const ctr = withEnv(withSrc(baseCtr, client, context))
.withEnvVariable("NODE_OPTIONS", "--max-old-space-size=4096")
.withExec(["bun", "install"])
.withExec(["bundle", "install"])
.withExec(["bundle", "exec", "fastlane", "android", name]);
.withExec(["sh", "-c", 'eval "$(devbox global shellenv)" && bun install'])
.withExec([
"sh",
"-c",
'eval "$(devbox global shellenv)" && bundle install',
])
.withExec([
"sh",
"-c",
`eval "$(devbox global shellenv)" && bundle exec fastlane android ${name}`,
]);

const result = await ctr.stdout();

Expand All @@ -34,4 +42,4 @@ export const runnableJobs: Record<Job, JobExec> = {

export const jobDescriptions: Record<Job, string> = {
[Job.execLane]: "Executes a lane",
};
};
14 changes: 11 additions & 3 deletions src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ export const execLane = async (name: string, src = ".") => {

const ctr = withEnv(withSrc(baseCtr, client, context))
.withEnvVariable("NODE_OPTIONS", "--max-old-space-size=4096")
.withExec(["bun", "install"])
.withExec(["bundle", "install"])
.withExec(["bundle", "exec", "fastlane", "android", name]);
.withExec(["sh", "-c", 'eval "$(devbox global shellenv)" && bun install'])
.withExec([
"sh",
"-c",
'eval "$(devbox global shellenv)" && bundle install',
])
.withExec([
"sh",
"-c",
`eval "$(devbox global shellenv)" && bundle exec fastlane android ${name}`,
]);

const result = await ctr.stdout();

Expand Down

0 comments on commit afe3382

Please sign in to comment.