[Git][NTPsec/ntpsec][master] Attempt to clean up the docker space (all types) before/during/after builds
Matt Selsky (@selsky)
gitlab at mg.gitlab.com
Tue Dec 6 02:08:53 UTC 2022
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
98440f79 by Matt Selsky at 2022-12-05T21:08:11-05:00
Attempt to clean up the docker space (all types) before/during/after builds
- - - - -
1 changed file:
- .gitlab-docker-ci.yml
Changes:
=====================================
.gitlab-docker-ci.yml
=====================================
@@ -9,7 +9,17 @@
script:
- IMAGE_NAME=${CI_JOB_NAME/build-/}
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+ - docker system df
+ - docker image prune
+ - docker system df
+ - docker container prune
+ - docker system df
+ - docker builder prune
+ - docker system df
+ - docker volume prune
+ - docker system df
- docker pull $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest || true
+ - docker system df
- >
docker build
--pull
@@ -17,6 +27,7 @@
--rm=false
--tag $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest .
--file .dockerfiles/$IMAGE_NAME
+ - docker system df
- docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
allow_failure: true
rules:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/98440f791bcbc98993fc3bce8b3abf01e9c735c9
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/98440f791bcbc98993fc3bce8b3abf01e9c735c9
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20221206/52c7a753/attachment-0001.htm>
More information about the vc
mailing list