File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,26 @@ jobs:
44
44
username : ${{ secrets.DOCKERHUB_USERNAME }}
45
45
password : ${{ secrets.DOCKERHUB_TOKEN }}
46
46
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
+
52
67
53
68
- name : Configure google cloud credentials
54
69
id : auth
You can’t perform that action at this time.
0 commit comments