devcontainer-template component
The Development Container Template component publishes a Template or Template collection to an OCI registry with the Development Container CLI.
Templates are packaged from a directory that contains devcontainer-template.json and either .devcontainer.json or .devcontainer/devcontainer.json, or from a collection src directory with one Template per subdirectory. The default registry target is the current project registry under $CI_REGISTRY_PROJECT_PATH/devcontainers/templates.
include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/devcontainer-template@stable
inputs:
path: src
Inputs
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| name | Name for the pipeline job. | $CI_PROJECT_NAME | string |
| namespace | OCI namespace for the Template collection. | $CI_REGISTRY_PROJECT_PATH/devcontainers/templates | string |
| needs | The jobs that this job depends on. | [] | array |
| path | Path to the Dev Container Template or src collection directory. | src | string |
| publish | Publish to the registry. Set to false to validate only. | true | boolean |
| registry | OCI registry host used for publishing Templates. | $CI_REGISTRY | string |
| rules | Rules for the publish job. Defaults to tag-only publishing. | [{"if":"$CI_COMMIT_TAG","when":"on_success"},{"when":"never"}] | array |
| stage | The pipeline stage that the job belongs to. | deploy | string |
| tags | The runners that this job depends on. | [] | array |