mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-21 19:31:43 +00:00
fix(ci): Fix build docker image error (#2279)
This commit is contained in:
parent
295cdb8723
commit
214105abee
4
.github/workflows/doc-image-publish.yml
vendored
4
.github/workflows/doc-image-publish.yml
vendored
@ -6,11 +6,11 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/docker-image-publish.yml'
|
||||
- '.github/workflows/doc-image-publish.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/docker-image-publish.yml'
|
||||
- '.github/workflows/doc-image-publish.yml'
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
5
.github/workflows/docker-image-publish.yml
vendored
5
.github/workflows/docker-image-publish.yml
vendored
@ -21,7 +21,10 @@ jobs:
|
||||
sudo swapoff -a
|
||||
sudo rm -f /swapfile
|
||||
sudo apt clean
|
||||
docker rmi $(docker image ls -aq)
|
||||
# Only delete Docker images when they exist
|
||||
if [ ! -z "$(docker image ls -aq)" ]; then
|
||||
docker rmi $(docker image ls -aq)
|
||||
fi
|
||||
df -h
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
Loading…
Reference in New Issue
Block a user