Skip to content

Commit

Permalink
fix(ci): Fix build docker image error (eosphoros-ai#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc authored Jan 6, 2025
1 parent 295cdb8 commit 214105a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/doc-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 214105a

Please sign in to comment.