From 17aa912d678788678445accbc68f84b22d4a5570 Mon Sep 17 00:00:00 2001 From: imjoey Date: Wed, 1 Sep 2021 17:24:17 +0800 Subject: [PATCH] ci: fix errors due to buildx bake with cache Signed-off-by: imjoey --- .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 58a0b050e9..4962061d61 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