Skip to content

Commit f35ae9e

Browse files
committed
fix: build and push devlake base failed when push a new tag (#4820)
* fix: build and push devlake base failed when push a new tag * fix: build and push devlake base failed when push a new tag
1 parent 5628986 commit f35ae9e

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
- name: Build and push lake image
4242
uses: docker/build-push-action@v3
4343
with:
44-
context: .
44+
context: ./backend
4545
push: true
4646
target: builder
4747
tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
48-
file: ./backend/Dockerfile
4948
platforms: linux/amd64
5049
cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
5150
cache-to: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
@@ -66,11 +65,10 @@ jobs:
6665
- name: Build and push lake image
6766
uses: docker/build-push-action@v3
6867
with:
69-
context: .
68+
context: ./backend
7069
push: true
7170
target: base
7271
tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
73-
file: ./backend/Dockerfile
7472
platforms: linux/amd64,linux/arm64
7573
cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
7674
cache-to: ${{ secrets.DOCKERHUB_OWNER }}/devlake:base
@@ -102,11 +100,10 @@ jobs:
102100
- name: Build and cache lake build
103101
uses: docker/build-push-action@v3
104102
with:
105-
context: .
103+
context: ./backend
106104
push: false
107105
target: build
108106
tags: ${{ secrets.DOCKERHUB_OWNER }}/devlake:build-cache-${{ matrix.platform }}
109-
file: ./backend/Dockerfile
110107
platforms: linux/${{ matrix.platform }}
111108
cache-from: ${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
112109
cache-to: type=local,mode=min,dest=/tmp/devlake-build-cache-${{ matrix.platform }}
@@ -151,11 +148,10 @@ jobs:
151148
- name: Build and push lake image
152149
uses: docker/build-push-action@v3
153150
with:
154-
context: .
151+
context: ./backend
155152
push: true
156153
tags: ${{ steps.get_push_tags.outputs.TAGS }}
157154
platforms: linux/amd64,linux/arm64
158-
file: ./backend/Dockerfile
159155
cache-from: |
160156
${{ secrets.DOCKERHUB_OWNER }}/devlake:amd64-builder
161157
${{ secrets.DOCKERHUB_OWNER }}/devlake:base

0 commit comments

Comments
 (0)