We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f22bf58 + 1118186 commit 97b61ceCopy full SHA for 97b61ce
1 file changed
Jenkinsfile
@@ -64,7 +64,13 @@ pipeline {
64
steps {
65
sh '''#!/bin/bash
66
set -exo pipefail
67
- docker image prune -f # remove previously built image to prevent disk from filling up
+ # 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
74
./build --gpu --base-image-tag ${STAGING_TAG} | ts
75
./push --gpu ${PRETEST_TAG}
76
'''
0 commit comments