Skip to content

Commit 892a1ce

Browse files
free disk space before docker and GPU build (#1917)
1 parent e9c2572 commit 892a1ce

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/publish-docker-gpu.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
with:
2424
username: ${{ secrets.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
- name: free disk space
27+
run: |
28+
sudo swapoff -a
29+
sudo rm -f /swapfile
30+
docker rmi $(docker image ls -aq)
2631
- name: Build and push Docker image
2732
id: docker_build
2833
uses: docker/build-push-action@v2

.github/workflows/publish-docker.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
images: opendronemap/odm
3636
tag-semver: |
3737
{{version}}
38+
- name: free disk space
39+
run: |
40+
sudo swapoff -a
41+
sudo rm -f /swapfile
42+
docker rmi $(docker image ls -aq)
3843
- name: Build and push Docker image
3944
id: docker_build
4045
uses: docker/build-push-action@v2
@@ -50,4 +55,4 @@ jobs:
5055
- name: Dispatch NodeODM Build Event
5156
id: nodeodm_dispatch
5257
run: |
53-
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/OpenDroneMap/NodeODM/actions/workflows/publish-docker.yaml/dispatches --data '{"ref": "master"}'
58+
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/OpenDroneMap/NodeODM/actions/workflows/publish-docker.yaml/dispatches --data '{"ref": "master"}'

0 commit comments

Comments
 (0)