summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-02-20 16:42:23 -0700
committermo khan <mo.khan@gmail.com>2020-02-20 16:42:23 -0700
commitc686452e4f073acf81bf3944f8d3e2a40ce6f302 (patch)
treeb9b41b00f091403365d01f6f439725650feec673
parent3bcad0265e0a00d083f44bc42adbdbca77cffbcd (diff)
Print the image size after building
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 07dde62..5316bb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,7 @@ tools:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker pull $TOOLS_IMAGE || true
- docker build --cache-from $TOOLS_IMAGE -t $TOOLS_IMAGE -f Dockerfile.tools .
+ - docker image inspect $TOOLS_IMAGE --format='{{.Size}}'
- docker push $TOOLS_IMAGE
build commit:
@@ -40,6 +41,7 @@ build commit:
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --build-arg TOOLS_IMAGE=$TOOLS_IMAGE -t $TMP_IMAGE .
+ - docker image inspect $TOOLS_IMAGE --format='{{.Size}}'
- docker push $TMP_IMAGE
container_scanning: