Commit 3846e6d9 authored by Ondřej Surý's avatar Ondřej Surý

Disable caching when building docker images

parent a72e378e
......@@ -19,7 +19,7 @@ stages:
- docker info
script:
- docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" || true
- docker build --cache-from "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" -t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$(echo $CI_JOB_NAME | sed -e 's,:,/,')"
- docker build --no-cache -t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$(echo $CI_JOB_NAME | sed -e 's,:,/,')"
- docker push "$CI_REGISTRY_IMAGE/$CI_JOB_NAME"
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
# - docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" || true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment