From cd079403c94d5df1fb17f725ea04870c0f0ac77b Mon Sep 17 00:00:00 2001 From: Jonas Eppelt <jonas.eppelt@kit.edu> Date: Thu, 12 Oct 2023 07:04:45 +0000 Subject: [PATCH] using no-cache to get updated packages at every new build --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0414bda..78fb6a1 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ build_and_push: for image in "${IMAGES[@]}"; do echo "$image"; cd "$image"; - docker build -t "$IMAGE_PREFIX/etp_${image}" . ;#--no-cache; + docker build -t "$IMAGE_PREFIX/etp_${image}" . --no-cache; docker push "$IMAGE_PREFIX/etp_${image}"; cd ../; done @@ -41,7 +41,7 @@ create_jupytermachine_version: sed -i "s#$OLD_BASE_IMAGE#$NEW_BASE_IMAGE#" "Dockerfile" cat Dockerfile; # Build the second version of the container - docker build -t "$IMAGE_PREFIX/jupytermachine_${image}" -f "Dockerfile" .; + docker build -t "$IMAGE_PREFIX/jupytermachine_${image}" -f "Dockerfile" . --no-cache; docker push "$IMAGE_PREFIX/jupytermachine_${image}"; # Revert the Dockerfile to its original state for other iterations sed -i "s#$NEW_BASE_IMAGE#$OLD_BASE_IMAGE#" "Dockerfile" -- GitLab