Skip to main content

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_TAG
  • latest for 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

NameDescriptionDefaultType
------------
dependenciesThe dependencies that this job depends on.[]array
nameName for the pipeline jobs and the container.$CI_PROJECT_NAMEstring
needsThe jobs that this job depends on.[]array
pathPath to the directory containing Container sources / context..string
registryRegistry to store container image releases in$CI_REGISTRYstring
repository-pathRepository to store container image releases in$CI_REGISTRY_PROJECT_PATHstring
rulesThe 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
stageThe pipeline stage that the jobs belongs to.buildstring
tagsThe runners that this job depends on.[]array