File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ jobs:
36
36
uses : docker/setup-buildx-action@v3
37
37
38
38
- name : Login to DockerHub
39
- if : ${{ secrets.DOCKERHUB_USERNAME != '' }}
39
+ if : ${{ github.event_name != 'pull_request ' }}
40
40
uses : docker/login-action@v3
41
41
with :
42
42
username : ${{ secrets.DOCKERHUB_USERNAME }}
43
43
password : ${{ secrets.DOCKERHUB_PASSWORD }}
44
44
45
45
- name : Build Docker images (PR)
46
- if : ${{ secrets.DOCKERHUB_USERNAME == '' }}
46
+ if : ${{ github.event_name == 'pull_request ' }}
47
47
uses : docker/build-push-action@v5
48
48
with :
49
49
context : .
53
53
target : aider
54
54
55
55
- name : Build Docker images (Push)
56
- if : ${{ secrets.DOCKERHUB_USERNAME != '' }}
56
+ if : ${{ github.event_name != 'pull_request ' }}
57
57
uses : docker/build-push-action@v5
58
58
with :
59
59
context : .
64
64
target : aider
65
65
66
66
- name : Build Docker full image (PR)
67
- if : ${{ secrets.DOCKERHUB_USERNAME == '' }}
67
+ if : ${{ github.event_name == 'pull_request ' }}
68
68
uses : docker/build-push-action@v5
69
69
with :
70
70
context : .
74
74
target : aider-full
75
75
76
76
- name : Build Docker full image (Push)
77
- if : ${{ secrets.DOCKERHUB_USERNAME != '' }}
77
+ if : ${{ github.event_name != 'pull_request ' }}
78
78
uses : docker/build-push-action@v5
79
79
with :
80
80
context : .
You can’t perform that action at this time.
0 commit comments