1.1 KiB · text History b018a0f
build-master:
  retry: 1
  stage: build
  image:
    name: gcr.io/kaniko-project/executor:v1.23.2-debug
    entrypoint: [""]
  only:
    - master
  script:
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
    # --push-retry: the registry has been returning
    # RESUMABLE_BLOB_UPLOAD_INVALID on a different, random blob each run
    # (pipelines 2777/2778/2779, three distinct digests), while the pull
    # mirror below simultaneously times out — an interrupted upload
    # leaves the session invalid, and the final PUT is what reports it.
    # Without a retry a single dropped blob fails the whole build.
    #
    # --image-download-retry: same story on the way in, where the
    # fallback from the mirror to the original registry already costs a
    # 30s timeout per base image.
    - /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE --registry-mirror us0.regi.kube.gmp.io --push-retry 5 --image-download-retry 3