Skip to content

Commit

Permalink
fix(ci): Fix push document image error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc committed Jan 3, 2025
1 parent de629f4 commit db54a0b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/doc-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,22 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Only run when there is a PR
- name: Build PR
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v4
with:
context: .
file: ./docs/Dockerfile-deploy
platforms: linux/amd64
push: false
# Only run when it is not a PR, build and push the image
- name: Build and push
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v4
with:
context: .
file: ./docs/Dockerfile-deploy
platforms: linux/amd64
# Only push when not in PR
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ github.event_name != 'pull_request' && 'eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest' || '' }}
push: true
tags: eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

concurrency:
group: ${{ github.event.number || github.run_id }}
cancel-in-progress: true
cancel-in-progress: false

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

concurrency:
group: ${{ github.event.number || github.run_id }}
cancel-in-progress: true
cancel-in-progress: false

#permissions:
# contents: read
Expand Down

0 comments on commit db54a0b

Please sign in to comment.