From 98a531df3762f7178206318f19b264e57ef666d2 Mon Sep 17 00:00:00 2001 From: faergestad Date: Mon, 22 Apr 2024 18:11:03 +0200 Subject: [PATCH] Enable docker build cache --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fcbcd932b..13be29a1b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,7 +53,7 @@ jobs: aws ecr get-login-password --region eu-west-1 \ | docker login --username AWS --password-stdin "$ECR_ENDPOINT" SHORT_SHA1=`echo ${CIRCLE_SHA1}|cut -c1-7` - docker build --no-cache -t ${ECR_ENDPOINT}/<< parameters.ecr_repo_name >> -f Dockerfile . + docker build -t ${ECR_ENDPOINT}/<< parameters.ecr_repo_name >> -f Dockerfile . docker tag ${ECR_ENDPOINT}/<< parameters.ecr_repo_name >> "${ECR_ENDPOINT}/<< parameters.ecr_repo_name >>:commit-${SHORT_SHA1}" docker push "${ECR_ENDPOINT}/<< parameters.ecr_repo_name >>:commit-${SHORT_SHA1}" docker tag ${ECR_ENDPOINT}/<< parameters.ecr_repo_name >> "${ECR_ENDPOINT}/<< parameters.ecr_repo_name >>:latest"