.gitlab-ci.yml 520 Bytes
Newer Older
Josep Manel Andres Moscardo's avatar
Josep Manel Andres Moscardo committed
1 2 3 4 5 6 7 8 9 10 11 12 13
stages:
  - buildimage

Build Image Master:
  image:
    name:  gcr.io/kaniko-project/executor:debug-v0.21.0 
    entrypoint: [""]
  stage: buildimage
  script:
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
    - /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$(date +%Y%m%d%H%M)-$CI_COMMIT_SHORT_SHA
  only:
    refs:
14
      - master