Skip to content
Snippets Groups Projects
.gitlab-ci.yml 389 B
Newer Older
Sonia Zorba's avatar
Sonia Zorba committed
stages:
  - dockerize

variables:
  # to avoid "fatal: git fetch-pack: expected shallow list"
  GIT_STRATEGY: clone

dockerize_file_catalog:
  stage: dockerize
  tags:
    - shell
  only:
    - master
  script:
    - docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
    - docker build -t "${CI_REGISTRY_IMAGE}" .
    - docker push "${CI_REGISTRY_IMAGE}"