We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2c32b7 + 073dd2a commit b5e8e4aCopy full SHA for b5e8e4a
scripts/docker/build.sh
@@ -163,6 +163,11 @@ export_docker_tag
163
164
BUILD_NETWORK="--network=host"
165
166
+# Prune old docker images (24 hours) from the cache
167
+# This is a temporary solution to keep the cache from growing too large.
168
+# We will also need to evaluate the impact of this on the build process and adjust as necessary.
169
+docker system prune --all --force --filter until=24h
170
+
171
# If DOCKER_CONTEXT is not specified, assume none and just pipe the dockerfile into docker build
172
if [[ -z "${DOCKER_CONTEXT}" ]]; then
173
cat $DOCKERFILE_PATH | docker build $NO_CACHE $BUILD_NETWORK $CACHE $NETWORK $IMAGE $DEB_CODENAME $DEB_RELEASE $DEB_VERSION $DOCKER_DEB_SUFFIX $DEB_REPO $BRANCH $REPO -t "$TAG" -
0 commit comments