Skip to content

Commit

Permalink
try use new method to expand docker build disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 21, 2024
1 parent a5fc78f commit 9697052
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/new-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be #v1.3.1
with:
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: true
- name: Use Temporary Disk as Docker Path
run: |
sudo service docker stop
tmp_dir=$(mktemp -d)
sudo cp -a /var/lib/docker/* $tmp_dir/
sudo umount /mnt
sudo mount /dev/sda1 /var/lib/docker
sudo cp -a $tmp_dir/* /var/lib/docker/
sudo service docker start
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
- name: Read version.env
Expand Down

0 comments on commit 9697052

Please sign in to comment.