Skip to content

Commit

Permalink
debug deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 18, 2023
1 parent 6f31517 commit 53a37eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion example/.fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ export async function deploy(
.pipeline(Job.deploy)
.container()
.from("pkgxdev/pkgx:latest")
.withUnixSocket(
"/var/run/docker.sock",
client.host().unixSocket("/var/run/docker.sock")
)
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "ca-certificates"])
.withExec([
"pkgx",
"install",
`node@${NODE_VERSION}`,
`bun@${BUN_VERSION}`,
"supabase@1.120.0",
"supabase",
])
.withEnvVariable("PATH", "/root/.bun/bin:$PATH", { expand: true })
.withDirectory("/app", context)
Expand All @@ -55,6 +59,7 @@ export async function deploy(
"supabase",
"functions",
"deploy",
"--debug",
"--project-ref",
Deno.env.get("PROJECT_ID") || projectId!,
]);
Expand Down
7 changes: 6 additions & 1 deletion src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ export async function deploy(
.pipeline(Job.deploy)
.container()
.from("pkgxdev/pkgx:latest")
.withUnixSocket(
"/var/run/docker.sock",
client.host().unixSocket("/var/run/docker.sock")
)
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "ca-certificates"])
.withExec([
"pkgx",
"install",
`node@${NODE_VERSION}`,
`bun@${BUN_VERSION}`,
"supabase@1.120.0",
"supabase",
])
.withEnvVariable("PATH", "/root/.bun/bin:$PATH", { expand: true })
.withDirectory("/app", context)
Expand All @@ -55,6 +59,7 @@ export async function deploy(
"supabase",
"functions",
"deploy",
"--debug",
"--project-ref",
Deno.env.get("PROJECT_ID") || projectId!,
]);
Expand Down

0 comments on commit 53a37eb

Please sign in to comment.