Skip to content

Commit

Permalink
Merge pull request #1117 from nsbno/enable-docker-build-cache
Browse files Browse the repository at this point in the history
Enable docker build cache
  • Loading branch information
alicemacl authored Apr 23, 2024
2 parents 7351f6b + 98a531d commit ca4975a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ca4975a

Please sign in to comment.