Skip to main content

devcontainer-feature component

The Development Container Feature component publishes a Feature or Feature collection to an OCI registry with the Development Container CLI.

Features are packaged from a directory that contains devcontainer-feature.json and install.sh, or from a collection src directory with one Feature per subdirectory. The default registry target is the current project registry under $CI_REGISTRY_PROJECT_PATH/devcontainers/features.

include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/devcontainer-feature@stable
inputs:
path: src

Inputs

NameDescriptionDefaultType
------------
nameName for the pipeline job.$CI_PROJECT_NAMEstring
namespaceOCI namespace for the Feature collection.$CI_REGISTRY_PROJECT_PATH/devcontainers/featuresstring
needsThe jobs that this job depends on.[]array
pathPath to the Dev Container Feature or src collection directory.srcstring
publishPublish to the registry. Set to false to validate and package only.trueboolean
registryOCI registry host used for publishing Features.$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