Skip to content

Commit 9146ad2

Browse files
committed
[nixpacks] update README
1 parent 59b10e0 commit 9146ad2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

β€Žnixpacks/README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ dagger -m github.com/tsirysndr/daggerverse/nixpacks call \
2929

3030
## ✨ Jobs
3131

32-
| Name | Description |
33-
| ------- | ----------------------------------- |
34-
| `dev` | Start a development environment |
35-
| `plan` | Generate build plan for the project |
36-
| `build` | Build an OCI image of the project |
32+
| Name | Description |
33+
| --------- | ----------------------------------- |
34+
| `dev` | Start a development environment |
35+
| `plan` | Generate build plan for the project |
36+
| `build` | Build an OCI image of the project |
37+
| `publish` | Publish the OCI image to a registry |
3738

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

β€Žnixpacks/src/dagger/jobs.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export async function build(
4848
.withWorkdir("/app")
4949
.withServiceBinding("dockerd", docker("25.0.3", true))
5050
.withEnvVariable("DOCKER_HOST", "tcp://dockerd:2375")
51-
.withExec(["nixpacks", "build", path, "--name", name])
52-
.withExec(["docker", "images"]);
51+
.withExec(["nixpacks", "build", path, "--name", name]);
5352
return ctr.stdout();
5453
}
5554

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

0 commit comments

Comments
Β (0)