mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-03 18:17:45 +00:00
fix(ci): Fix push document image error (#2273)
This commit is contained in:
20
.github/workflows/doc-image-publish.yml
vendored
20
.github/workflows/doc-image-publish.yml
vendored
@@ -6,9 +6,11 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
- '.github/workflows/docker-image-publish.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
- '.github/workflows/docker-image-publish.yml'
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -36,12 +38,22 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
# Only run when there is a PR
|
||||||
|
- name: Build PR
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docs/Dockerfile-deploy
|
file: ./docs/Dockerfile-deploy
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
# Only push when not in PR
|
push: false
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
# Only run when it is not a PR, build and push the image
|
||||||
tags: ${{ github.event_name != 'pull_request' && 'eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest' || '' }}
|
- 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
|
||||||
|
push: true
|
||||||
|
tags: eosphorosai/dbgpt-docs:${{ github.ref_name }},eosphorosai/dbgpt-docs:latest
|
2
.github/workflows/pylint.yml
vendored
2
.github/workflows/pylint.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.event.number || github.run_id }}
|
group: ${{ github.event.number || github.run_id }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
2
.github/workflows/test-python.yml
vendored
2
.github/workflows/test-python.yml
vendored
@@ -18,7 +18,7 @@ on:
|
|||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.event.number || github.run_id }}
|
group: ${{ github.event.number || github.run_id }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: false
|
||||||
|
|
||||||
#permissions:
|
#permissions:
|
||||||
# contents: read
|
# contents: read
|
||||||
|
Reference in New Issue
Block a user