Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ pipeline {
steps {
sh '''#!/bin/bash
set -exo pipefail
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.
docker image prune --all --force --filter "until=120h"
# Remove any dangling images (no tags).
# All builds for the same branch uses the same tag. This means a subsequent build for the same branch
# will untag the previously built image which is safe to do. Builds for a single branch are performed
# serially.
docker image prune -f
./build --gpu --base-image-tag ${STAGING_TAG} | ts
./push --gpu ${PRETEST_TAG}
'''
Expand Down