summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-02 10:42:40 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-03 18:26:58 +0300
commit3bf2fc3dfbbbd5a6f5ff0fc8b417ee25e0f338b9 (patch)
tree6d126a2d33cdc80cb92c00fd89c12828f5bc8982 /.gitlab-ci
parent764c858dd5362058ce865c178dc2f19bb8809e70 (diff)
Dockerfile: Clean package manager caches and squash images
To save some space and bandwidth. Without --squash the caches would get cleaned up only from the last layer which would save us nothing. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/pull-or-rebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/pull-or-rebuild.sh b/.gitlab-ci/pull-or-rebuild.sh
index 3d71e8210..7b3bb84ca 100755
--- a/.gitlab-ci/pull-or-rebuild.sh
+++ b/.gitlab-ci/pull-or-rebuild.sh
@@ -44,7 +44,7 @@ if [ "$TYPE" = "base" ]; then
echo "Skipping, already built"
else
echo "Building!"
- podman build --build-arg=CI_COMMIT_SHA=$CI_COMMIT_SHA -t $DOCKERNAME -f $DOCKERFILE .
+ podman build --squash --build-arg=CI_COMMIT_SHA=$CI_COMMIT_SHA -t $DOCKERNAME -f $DOCKERFILE .
podman push $DOCKERNAME
fi