Commit 8bebaf93 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch '71-error-uploading-layer-to-cache-failed-to-push-to-destination' into 'master'

Resolve "Error uploading layer to cache: failed to push to destination"

Closes #71

See merge request to-be-continuous/docker!106
parents b4032aa5 9c51d094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ It is bound to the `package-build` stage, and uses the following variables:
| `registry-mirror` / `DOCKER_REGISTRY_MIRROR` | URL of a Docker registry mirror to use during the image build (instead of default `https://index.docker.io`) <br>:warning: Used by the `kaniko` and `dind` options only | _(none)_                       |
| `container-registries-config-file` / `CONTAINER_REGISTRIES_CONFIG_FILE` | The [`registries.conf`](https://www.redhat.com/sysadmin/manage-container-registries) configuration to be used<br>:warning: Used by the `buildah` build only             | _(none)_                       |
| `metadata` / `DOCKER_METADATA` | Additional `docker build`/`kaniko` arguments to set label                                                                                                               | OCI Image Format Specification |
| `kaniko-snapshot-image-cache` / `KANIKO_SNAPSHOT_IMAGE_CACHE` | Snapshot image repository that will be used to store cached layers<br>:warning: Used by the `kaniko` build only                                                         | `${DOCKER_SNAPSHOT_IMAGE%:*}/cache` |
| `kaniko-snapshot-image-cache` / `KANIKO_SNAPSHOT_IMAGE_CACHE` | Snapshot image repository that will be used to store cached layers (leave empty to use default: snapshot image repository + `/cache`)<br>:warning: Used by the `kaniko` build only | _none_ (default cache path) |
| `build-cache-disabled` / `DOCKER_BUILD_CACHE_DISABLED`      | Set to `true` to disable the build cache.<br/>Cache can typically be disabled when there is a network latency between the container registry and the runner. | _none_ (i.e cache enabled) |

This job produces _output variables_ that are propagated to downstream jobs (using [dotenv artifacts](https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#artifactsreportsdotenv)):
+1 −2
Original line number Diff line number Diff line
@@ -112,8 +112,7 @@
    },
    {
      "name": "KANIKO_SNAPSHOT_IMAGE_CACHE",
      "description": "Snapshot image repository that will be used to store cached layers.\n\n_Used by the `kaniko` build only_",
      "default": "${DOCKER_SNAPSHOT_IMAGE%:*}/cache",
      "description": "Snapshot image repository that will be used to store cached layers (leave empty to use default: snapshot image repository + `/cache`)\n\n_Used by the `kaniko` build only_",
      "advanced": true
    },
    {
+2 −2
Original line number Diff line number Diff line
@@ -120,10 +120,10 @@ spec:
      default: ''
    kaniko-snapshot-image-cache:
      description: |-
        Snapshot image repository that will be used to store cached layers.
        Snapshot image repository that will be used to store cached layers (leave empty to use default: snapshot image repository + `/cache`)

        _Used by the `kaniko` build only_
      default: ${DOCKER_SNAPSHOT_IMAGE%:*}/cache
      default: ''
    hadolint-disabled:
      description: Disable Hadolint
      type: boolean