Skip to content

Commit

Permalink
Add buildkit repo cache
Browse files Browse the repository at this point in the history
make buildkit use image build cahce and save it to docker hub
  • Loading branch information
dongwoo committed Jun 7, 2024
1 parent 7213bfe commit f5d620f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,18 @@ bench: ## runs benchmark tests

docker: ## builds docker images with the current version and latest tag
#docker buildx build --push --platform linux/amd64,linux/arm64,linux/386 -t yorkieteam/yorkie:$(YORKIE_VERSION) -t yorkieteam/yorkie:latest .
docker buildx build --push --platform linux/amd64 -t wdk1994/yorkie:$(YORKIE_VERSION) -t wdk1994/yorkie:latest .
docker buildx build \
--cache-from wkd1994/yorkie:cache-linux-amd64 \
--cache-to wkd1994/yorkie:cache-linux-amd64 \
--push --platform linux/amd64 \
-t wdk1994/yorkie:$(YORKIE_VERSION) \
-t wdk1994/yorkie:latest .

docker-latest: ## builds docker images with latest tag
docker buildx build --push --platform linux/amd64 -t wdk1994/yorkie:latest .
docker buildx build --push --platform linux/amd64 \
--cache-from wkd1994/yorkie:cache-linux-amd64 \
--cache-to wkd1994/yorkie:cache-linux-amd64 \
-t wdk1994/yorkie:latest .

swagger: ## runs swagger-ui with the yorkie api docs
docker run -p 3000:8080 \
Expand Down

0 comments on commit f5d620f

Please sign in to comment.