Usage
The component publishes the ORAS artifact with the commit SHA tag and the same release tags as the container build helpers:
$CI_CONTAINER_RELEASE_TAGlatestfor Git tags whose commit is contained in the default branch- the normalized branch name for default-branch and stable semver branch pipelines
- Create a new project
- Create a
Containerfile.
FROM alpine
- Create GitLab pipeline file
.gitlab-ci.yml:
include:
- component: $CI_SERVER_HOST/xrow-public/ci-tools/common@main
- component: $CI_SERVER_HOST/xrow-public/ci-tools/oras-push@main
inputs:
name: myapplication
path: .
Inputs
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| dependencies | The dependencies that this job depends on. | [] | array |
| name | Name for the pipeline jobs and the container. | $CI_PROJECT_NAME | string |
| needs | The jobs that this job depends on. | [] | array |
| path | Path to the directory containing Container sources / context. | . | string |
| registry | Registry to store container image releases in | $CI_REGISTRY | string |
| repository-path | Repository to store container image releases in | $CI_REGISTRY_PROJECT_PATH | string |
| rules | The jobs that this job depends on. | [{"if":"$CI_PIPELINE_SOURCE == \"schedule\"","when":"never"},{"if":"$CI_PIPELINE_SOURCE == \"merge_request_event\"","when":"on_success"},{"when":"on_success"}] | array |
| stage | The pipeline stage that the jobs belongs to. | build | string |
| tags | The runners that this job depends on. | [] | array |