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
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| name | Name for the pipeline job. | $CI_PROJECT_NAME | string |
| namespace | OCI namespace for the Feature collection. | $CI_REGISTRY_PROJECT_PATH/devcontainers/features | string |
| needs | The jobs that this job depends on. | [] | array |
| path | Path to the Dev Container Feature or src collection directory. | src | string |
| publish | Publish to the registry. Set to false to validate and package only. | true | boolean |
| registry | OCI registry host used for publishing Features. | $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 |