Skip to content

Commit 6abab49

Browse files
authored
modify swap and remove docker clean
1 parent 7029baa commit 6abab49

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/docker-publish.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,27 @@ jobs:
4848
- name: Checkout repository
4949
uses: actions/checkout@v3
5050

51-
- name: Set up swap space
52-
if: runner.os == 'Linux'
53-
uses: pierotofy/[email protected]
54-
with:
55-
swap-size-gb: 10
51+
# - name: Set up swap space
52+
# if: runner.os == 'Linux'
53+
# uses: pierotofy/[email protected]
54+
# with:
55+
# swap-size-gb: 10
5656

57-
# clean cache image
58-
- name: Clean up Docker space
57+
- name: Setup swap space
5958
run: |
60-
echo "Cleaning up Docker space..."
61-
docker system prune -af
62-
docker volume prune -f
63-
docker image prune -af
64-
docker container prune -f
59+
sudo fallocate -l 8G /swapfile
60+
sudo chmod 600 /swapfile
61+
sudo mkswap /swapfile
62+
sudo swapon /swapfile
63+
64+
# clean cache image
65+
# - name: Clean up Docker space
66+
# run: |
67+
# echo "Cleaning up Docker space..."
68+
# docker system prune -af
69+
# docker volume prune -f
70+
# docker image prune -af
71+
# docker container prune -f
6572

6673
# Install the cosign tool except on PR
6774
# https://github.com/sigstore/cosign-installer

0 commit comments

Comments
 (0)