File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
paths :
8
8
- ' docs/**'
9
+ - ' .github/workflows/docker-image-publish.yml'
9
10
pull_request :
10
11
paths :
11
12
- ' docs/**'
13
+ - ' .github/workflows/docker-image-publish.yml'
12
14
release :
13
15
types : [published]
14
16
workflow_dispatch :
@@ -36,12 +38,22 @@ jobs:
36
38
username : ${{ secrets.DOCKERHUB_USERNAME }}
37
39
password : ${{ secrets.DOCKERHUB_TOKEN }}
38
40
41
+ # Only run when there is a PR
42
+ - name : Build PR
43
+ if : github.event_name == 'pull_request'
44
+ uses : docker/build-push-action@v4
45
+ with :
46
+ context : .
47
+ file : ./docs/Dockerfile-deploy
48
+ platforms : linux/amd64
49
+ push : false
50
+ # Only run when it is not a PR, build and push the image
39
51
- name : Build and push
52
+ if : github.event_name != 'pull_request'
40
53
uses : docker/build-push-action@v4
41
54
with :
42
55
context : .
43
56
file : ./docs/Dockerfile-deploy
44
57
platforms : linux/amd64
45
- # Only push when not in PR
46
- push : ${{ github.event_name != 'pull_request' }}
47
- tags : ${{ github.event_name != 'pull_request' && 'eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest' || '' }}
58
+ push : true
59
+ tags : eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest
Original file line number Diff line number Diff line change 9
9
10
10
concurrency :
11
11
group : ${{ github.event.number || github.run_id }}
12
- cancel-in-progress : true
12
+ cancel-in-progress : false
13
13
14
14
jobs :
15
15
build :
Original file line number Diff line number Diff line change 18
18
19
19
concurrency :
20
20
group : ${{ github.event.number || github.run_id }}
21
- cancel-in-progress : true
21
+ cancel-in-progress : false
22
22
23
23
# permissions:
24
24
# contents: read
You can’t perform that action at this time.
0 commit comments