From a5031f336277075a53397313e0a1b678ba5982cc Mon Sep 17 00:00:00 2001 From: Antoine Legrand <2t.antoine@gmail.com> Date: Thu, 27 Jul 2017 17:42:23 +0200 Subject: [PATCH] Build-ci image without using docker cache --- .gitlab-ci.jsonnet | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.jsonnet b/.gitlab-ci.jsonnet index 0eacc9358..136ba2d6d 100644 --- a/.gitlab-ci.jsonnet +++ b/.gitlab-ci.jsonnet @@ -45,7 +45,7 @@ local jobs = { // Docker Tag is the branch/tag name stage: stages.docker_build, script: [ - 'docker build -t %s -f Dockerfile .' % images.quayci.name, + 'docker build --no-cache -t %s -f Dockerfile .' % images.quayci.name, 'docker run --rm %s cat ALEMBIC_HEAD > /tmp/ALEMBIC_HEAD' % images.quayci.name, 'export MIGRATION_HEAD=`cat /tmp/ALEMBIC_HEAD | cut -d" " -f1`', 'echo $MIGRATION_HEAD', diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 384d5b62f..b235a8613 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ container-build: - docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io image: docker:git script: - - docker build -t quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG} -f Dockerfile . + - docker build --no-cache -t quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG} -f Dockerfile . - docker run --rm quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG} cat ALEMBIC_HEAD > /tmp/ALEMBIC_HEAD - export MIGRATION_HEAD=`cat /tmp/ALEMBIC_HEAD | cut -d" " -f1` - echo $MIGRATION_HEAD