Skip to content

Commit

Permalink
[nixpacks] update README
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Mar 11, 2024
1 parent 59b10e0 commit 9146ad2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 6 additions & 5 deletions nixpacks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ dagger -m github.com/tsirysndr/daggerverse/nixpacks call \

## ✨ Jobs

| Name | Description |
| ------- | ----------------------------------- |
| `dev` | Start a development environment |
| `plan` | Generate build plan for the project |
| `build` | Build an OCI image of the project |
| Name | Description |
| --------- | ----------------------------------- |
| `dev` | Start a development environment |
| `plan` | Generate build plan for the project |
| `build` | Build an OCI image of the project |
| `publish` | Publish the OCI image to a registry |

## πŸ§‘β€πŸ’» Programmatic usage

Expand Down
5 changes: 2 additions & 3 deletions nixpacks/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export async function build(
.withWorkdir("/app")
.withServiceBinding("dockerd", docker("25.0.3", true))
.withEnvVariable("DOCKER_HOST", "tcp://dockerd:2375")
.withExec(["nixpacks", "build", path, "--name", name])
.withExec(["docker", "images"]);
.withExec(["nixpacks", "build", path, "--name", name]);
return ctr.stdout();
}

Expand All @@ -68,7 +67,7 @@ export async function plan(
): Promise<File | string> {
const context = await getDirectory(src);
const ctr = dag
.pipeline(Job.build)
.pipeline(Job.plan)
.container()
.from("pkgxdev/pkgx:latest")
.withMountedCache("/root/.pkgx", dag.cacheVolume("pkgx-cache"))
Expand Down

0 comments on commit 9146ad2

Please sign in to comment.