@@ -42,22 +42,44 @@ jobs:
42
42
username : ${{ secrets.DOCKERHUB_USERNAME }}
43
43
password : ${{ secrets.DOCKERHUB_PASSWORD }}
44
44
45
- - name : Build and push Docker images
45
+ - name : Build Docker images (PR)
46
+ if : github.event_name == 'pull_request'
46
47
uses : docker/build-push-action@v5
47
48
with :
48
49
context : .
49
50
file : ./docker/Dockerfile
50
51
platforms : linux/amd64,linux/arm64
51
- push : ${{ github.event_name != 'pull_request' }}
52
+ push : false
53
+ target : aider
54
+
55
+ - name : Build Docker images (Push)
56
+ if : github.event_name != 'pull_request'
57
+ uses : docker/build-push-action@v5
58
+ with :
59
+ context : .
60
+ file : ./docker/Dockerfile
61
+ platforms : linux/amd64,linux/arm64
62
+ push : true
52
63
tags : ${{ secrets.DOCKERHUB_USERNAME }}/aider:dev
53
64
target : aider
54
65
55
- - name : Build and push Docker full image
66
+ - name : Build Docker full image (PR)
67
+ if : github.event_name == 'pull_request'
68
+ uses : docker/build-push-action@v5
69
+ with :
70
+ context : .
71
+ file : ./docker/Dockerfile
72
+ platforms : linux/amd64,linux/arm64
73
+ push : false
74
+ target : aider-full
75
+
76
+ - name : Build Docker full image (Push)
77
+ if : github.event_name != 'pull_request'
56
78
uses : docker/build-push-action@v5
57
79
with :
58
80
context : .
59
81
file : ./docker/Dockerfile
60
82
platforms : linux/amd64,linux/arm64
61
- push : ${{ github.event_name != 'pull_request' }}
83
+ push : true
62
84
tags : ${{ secrets.DOCKERHUB_USERNAME }}/aider-full:dev
63
85
target : aider-full
0 commit comments