ocaml-image.yml.in 671 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
ocaml-image-%OCAML_VERSION%:
  stage: build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  variables:
    OCAML_VERSION: %OCAML_VERSION%
  script:
    - |
      echo "{
        \"auths\": {
          \"$CI_REGISTRY\": {
            \"username\":\"$CI_REGISTRY_USER\",
            \"password\":\"$CI_REGISTRY_PASSWORD\"
      }}}
      " > /kaniko/.docker/config.json
    - /kaniko/executor --cache=true --reproducible
          --context $CI_PROJECT_DIR
          --dockerfile $CI_PROJECT_DIR/Dockerfile
          --build-arg OCAML_VERSION=$OCAML_VERSION
          --destination $CI_REGISTRY_IMAGE:${OCAML_VERSION%.*}
  only:
    - master