Skip to content

Commit 2280c84

Browse files
committed
Set context for docker build to root directory.
1 parent 2e78633 commit 2280c84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/backend.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
uses: docker/build-push-action@v3
8787
with:
8888
context: .
89+
file: ./backend/Dockerfile
8990
platforms: linux/amd64,linux/arm64
9091
push: ${{ github.event_name != 'pull_request' }}
9192
tags: ${{ steps.backendMeta.outputs.tags }}
@@ -96,19 +97,19 @@ jobs:
9697
uses: docker/build-push-action@v3
9798
with:
9899
context: .
100+
file: ./backend/heartbeat.Dockerfile
99101
platforms: linux/amd64,linux/arm64
100102
push: ${{ github.event_name != 'pull_request' }}
101103
tags: ${{ steps.heartbeatMeta.outputs.tags }}
102-
file: ./backend/heartbeat.Dockerfile
103104
labels: ${{ steps.heartbeatMeta.outputs.labels }}
104105

105106
-
106107
name: Build and push
107108
uses: docker/build-push-action@v3
108109
with:
109110
context: .
111+
file: ./backend/messages.Dockerfile
110112
platforms: linux/amd64,linux/arm64
111113
push: ${{ github.event_name != 'pull_request' }}
112114
tags: ${{ steps.messagesMeta.outputs.tags }}
113-
file: ./backend/messages.Dockerfile
114115
labels: ${{ steps.messagesMeta.outputs.labels }}

0 commit comments

Comments
 (0)