Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.02 KiB
Newer Older
---

stages:
  - build

m431m's avatar
m431m committed
build geofit docker image:
  stage: build
  only:
m431m's avatar
m431m committed
    - geofit
m431m's avatar
m431m committed
  when: manual
  tags:
    - build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_SECRET\"}}}" > /kaniko/.docker/config.json
m431m's avatar
m431m committed
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination neogeo/onegeo-suite:geofit

build tagged docker image:
  stage: build
  only:
    - geofit
  when: manual
  tags:
    - build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_SECRET\"}}}" > /kaniko/.docker/config.json
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination neogeo/onegeo-suite:geofit-$CI_PIPELINE_ID
    - echo Image docker neogeo/onegeo-suite:geofit-$CI_PIPELINE_ID livrée