| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,13 @@ pipeline { | |||
| 64 | 64 | steps { | |
| 65 | 65 | sh '''#!/bin/bash | |
| 66 | 66 | set -exo pipefail | |
| 67 | - docker image prune -f # remove previously built image to prevent disk from filling up | ||
| 67 | + # Remove images (dangling or not) created more than 120h (5 days ago) to prevent disk from filling up. | ||
| 68 | + docker image prune --all --force --filter "until=120h" | ||
| 69 | + # Remove any dangling images (no tags). | ||
| 70 | + # All builds for the same branch uses the same tag. This means a subsequent build for the same branch | ||
| 71 | + # will untag the previously built image which is safe to do. Builds for a single branch are performed | ||
| 72 | + # serially. | ||
| 73 | + docker image prune -f | ||
| 68 | 74 | ./build --gpu --base-image-tag ${STAGING_TAG} | ts | |
| 69 | 75 | ./push --gpu ${PRETEST_TAG} | |
| 70 | 76 | ''' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments