Skip to main content

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

NameDescriptionDefaultType
------------
nameName for the pipeline job.$CI_PROJECT_NAMEstring
namespaceOCI namespace for the Template collection.$CI_REGISTRY_PROJECT_PATH/devcontainers/templatesstring
needsThe jobs that this job depends on.[]array
pathPath to the Dev Container Template or src collection directory.srcstring
publishPublish to the registry. Set to false to validate only.trueboolean
registryOCI registry host used for publishing Templates.$CI_REGISTRYstring
rulesRules for the publish job. Defaults to tag-only publishing.[{"if":"$CI_COMMIT_TAG","when":"on_success"},{"when":"never"}]array
stageThe pipeline stage that the job belongs to.deploystring
tagsThe runners that this job depends on.[]array