Skip to content

Commit

Permalink
Disable docker layer caching when building images (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinc authored Dec 17, 2024
1 parent 24e99dd commit 1fe5372
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
docker_layer_caching: false
- run:
name: Build artifacts w/ Skaffold
command: |
Expand All @@ -59,7 +59,7 @@ jobs:
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
docker_layer_caching: false
- run:
name: Install buildx
command: |
Expand All @@ -85,8 +85,10 @@ jobs:
skaffold config set --global collect-metrics false
skaffold build --platform=${BUILDX_PLATFORMS} -p build-and-push --file-output build/${CIRCLE_SHA1}.json
# re-tag :latest
cat build/${CIRCLE_SHA1}.json
skaffold_tag=$(cat build/${CIRCLE_SHA1}.json | jq -r '.builds[0].tag | split("@")[0]')
skaffold_image=$(cat build/${CIRCLE_SHA1}.json | jq -r '.builds[0].imageName')
docker images
docker tag ${skaffold_tag} ${skaffold_image}:latest
docker push ${skaffold_image}:latest
- persist_to_workspace:
Expand Down

0 comments on commit 1fe5372

Please sign in to comment.