Skip to content

Commit 1805db4

Browse files
committed
fix: change context path with : #32
1 parent e6c0ae1 commit 1805db4

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/deploy.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,26 @@ jobs:
4444
username: ${{ secrets.DOCKERHUB_USERNAME }}
4545
password: ${{ secrets.DOCKERHUB_TOKEN }}
4646

47-
- name: Build and push
48-
run: |
49-
pwd
50-
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ secrets.DOCKERHUB_USERNAME }}/bm-controller:latest -f /bm-controller/Dockerfile --push .
51-
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ secrets.DOCKERHUB_USERNAME }}/bm-agent:latest -f /bm-agent/Dockerfile --push .
47+
- name: Build and push - controller
48+
uses: docker/build-push-action@v5
49+
with:
50+
context: "{{defaultContext}}:bm-controller"
51+
push: true
52+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/bm-controller:latest
53+
platforms: |
54+
linux/amd64
55+
linux/arm64
56+
57+
- name: Build and push - agent
58+
uses: docker/build-push-action@v5
59+
with:
60+
context: "{{defaultContext}}:bm-agent"
61+
push: true
62+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/bm-agent:latest
63+
platforms: |
64+
linux/amd64
65+
linux/arm64
66+
5267

5368
- name: Configure google cloud credentials
5469
id: auth

0 commit comments

Comments
 (0)