diff --git a/nixpacks/README.md b/nixpacks/README.md index a77586a..f686153 100644 --- a/nixpacks/README.md +++ b/nixpacks/README.md @@ -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 diff --git a/nixpacks/src/dagger/jobs.ts b/nixpacks/src/dagger/jobs.ts index 3087b17..4f78eee 100644 --- a/nixpacks/src/dagger/jobs.ts +++ b/nixpacks/src/dagger/jobs.ts @@ -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(); } @@ -68,7 +67,7 @@ export async function plan( ): Promise { 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"))