You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/03/30 07:40:36 UTC

[incubator-devlake] branch test-github-action updated: fix: add context=backend

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

abeizn pushed a commit to branch test-github-action
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/test-github-action by this push:
     new ff49a1509 fix: add context=backend
ff49a1509 is described below

commit ff49a1509ee148b9f9f494091269eb55dc59749c
Author: abeizn <zi...@merico.dev>
AuthorDate: Thu Mar 30 15:40:27 2023 +0800

    fix: add context=backend
---
 .github/workflows/build.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c563c9499..09ea3f09c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,10 +41,11 @@ jobs:
       - name: Build and push lake image
         uses: docker/build-push-action@v3
         with:
-          context: .
+          context: ./backend
           push: true
           target: builder
           tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
+          file: ./backend/Dockerfile
           platforms: linux/amd64
           cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
           cache-to: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
@@ -65,10 +66,11 @@ jobs:
       - name: Build and push lake image
         uses: docker/build-push-action@v3
         with:
-          context: .
+          context: ./backend
           push: true
           target: base
           tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
+          file: ./backend/Dockerfile
           platforms: linux/amd64,linux/arm64
           cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
           cache-to: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
@@ -100,10 +102,11 @@ jobs:
       - name: Build and cache lake build
         uses: docker/build-push-action@v3
         with:
-          context: .
+          context: ./backend
           push: false
           target: build
           tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:build-cache-${{ matrix.platform }}
+          file: ./backend/Dockerfile
           platforms: linux/${{ matrix.platform }}
           cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
           cache-to: type=local,mode=min,dest=/tmp/devlake-build-cache-${{ matrix.platform }}
@@ -148,10 +151,11 @@ jobs:
       - name: Build and push lake image
         uses: docker/build-push-action@v3
         with:
-          context: .
+          context: ./backend
           push: true
           tags: ${{ steps.get_push_tags.outputs.TAGS }}
           platforms: linux/amd64,linux/arm64
+          file: ./backend/Dockerfile
           cache-from: |
             ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
             ${{ secrets.DOCKERHUB_OWNER }}/devlake:base