Skip to content

Commit

Permalink
Adding docker prune after each build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
tefirman committed Oct 29, 2024
1 parent ab95c83 commit ab2855e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
IFS="/" read -ra toolarr <<< "$changed_file"
IFS="_" read -ra tagarr <<< "$changed_file"
docker build --platform linux/amd64 -t ghcr.io/getwilds/${toolarr[0]}:${tagarr[-1]} -f ${changed_file} --push .
docker system prune -af
sleep 5
fi
done
Expand All @@ -57,6 +58,7 @@ jobs:
IFS="/" read -ra toolarr <<< "$changed_file"
IFS="_" read -ra tagarr <<< "$changed_file"
docker build --platform linux/amd64 -t getwilds/${toolarr[0]}:${tagarr[-1]} -f ${changed_file} --push .
docker system prune -af
sleep 5
fi
done
Expand Down

0 comments on commit ab2855e

Please sign in to comment.