Skip to content

Commit

Permalink
Muti platform caching strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
azagniotov authored Jan 20, 2024
1 parent a3b2256 commit 8f97f4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ build_push_image_steps: &build_push_image_steps
docker run --rm --privileged tonistiigi/binfmt --install all
docker context create tls-environment
docker buildx create tls-environment --use
docker buildx build --build-arg REVISION=master --platform linux/amd64,linux/arm64 -f Dockerfile.arm64 --rm --no-cache -t azagniotov/stubby4j:latest-jre<< parameters.jdk_version >> --push .
docker buildx build --cache-from=type=registry,ref=azagniotov/stubby4j:buildcache-arm64-jre<< parameters.jdk_version >> --cache-to=type=registry,ref=azagniotov/stubby4j:buildcache-arm64-jre<< parameters.jdk_version >> --platform linux/arm64 --load .
docker buildx build --cache-from=type=registry,ref=azagniotov/stubby4j:buildcache-amd64-jre<< parameters.jdk_version >> --cache-to=type=registry,ref=azagniotov/stubby4j:buildcache-amd64-jre<< parameters.jdk_version >> --platform linux/amd64 --load .
docker buildx build --cache-from=type=registry,ref=image:azagniotov/stubby4j:buildcache-amd64-jre<< parameters.jdk_version >> --cache-from=type=registry,ref=azagniotov/stubby4j:buildcache-arm64-jre<< parameters.jdk_version >> --build-arg REVISION=master --platform linux/amd64,linux/arm64 -f Dockerfile.arm64 -t azagniotov/stubby4j:latest-jre<< parameters.jdk_version >> --output=type=image --push .
docker context rm tls-environment
smoke_test_steps: &smoke_test_steps
Expand Down

0 comments on commit 8f97f4a

Please sign in to comment.