container
container(
input:WithMeta<ContainerInput>):ContainerModel
Create a container model for use as a job-level container.
The returned model maps to the jobs.<job_id>.container key in a
GitHub Actions workflow YAML.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Container configuration and optional metadata. |
Returns
Section titled “Returns”ContainerModel
A branded ContainerModel.
Example
Section titled “Example”const pg = container({ image: "postgres:16", env: { POSTGRES_PASSWORD: "postgres" }, ports: ["5432:5432"],});