You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by st...@apache.org on 2021/09/02 01:12:50 UTC

[apisix-dashboard] branch master updated: ci: fix errors due to buildx bake with cache (#2112)

This is an automated email from the ASF dual-hosted git repository.

starsz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 528699d  ci: fix errors due to buildx bake with cache (#2112)
528699d is described below

commit 528699d1e10dac63a9408abc66bfe3d8e854284a
Author: Joey <ma...@apache.org>
AuthorDate: Thu Sep 2 09:12:44 2021 +0800

    ci: fix errors due to buildx bake with cache (#2112)
    
    Signed-off-by: imjoey <ma...@apache.org>
---
 .github/workflows/deploy-with-docker.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy-with-docker.yml b/.github/workflows/deploy-with-docker.yml
index 58a0b05..4962061 100644
--- a/.github/workflows/deploy-with-docker.yml
+++ b/.github/workflows/deploy-with-docker.yml
@@ -73,10 +73,14 @@ jobs:
         working-directory: ./api/test/docker-deploy
         continue-on-error: true
         run: |
+          docker buildx create --name=builderx --use \
+            --driver docker-container \
+            --driver-opt image=moby/buildkit:master,network=host
           docker buildx bake --load \
           -f docker-compose.yaml \
           --set *.cache-from=type=local,src=/tmp/.buildx-cache \
-          --set *.cache-to=type=local,dest=/tmp/.buildx-cache
+          --set *.cache-to=type=local,dest=/tmp/.buildx-cache \
+          --builder builderx
 
       - name: Run Docker Compose
         working-directory: ./api/test/docker-deploy