Skip to content

Commit

Permalink
Fix docker-full build failure (#12895)
Browse files Browse the repository at this point in the history
* fix no space left on device in github job

* add dockerignore to /docker subdir

* remove AGENT_TOOLSDIRECTORY

* add -f to docker image prune, add check disk space step after docker build
  • Loading branch information
ancalita authored Oct 5, 2023
1 parent 332f383 commit fcefb7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ rasa/tests
rasa/scripts
data/
examples/
docker-data/*
8 changes: 7 additions & 1 deletion .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,11 @@ jobs:
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt clean
docker image prune -a
docker image prune -a -f
docker volume prune -f
docker container prune -f
df -h
- name: Read Poetry Version 🔢
Expand Down Expand Up @@ -1077,6 +1080,9 @@ jobs:
run: |
docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl ${{ matrix.image }}
- name: Check how much space is left after Docker build
run: df -h

- name: Push image with main tag 📦
if: needs.changes.outputs.docker == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'RasaHQ/rasa'
run: |
Expand Down
1 change: 1 addition & 0 deletions docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-data/*

0 comments on commit fcefb7b

Please sign in to comment.