Skip to content
Snippets Groups Projects
Commit cd079403 authored by Jonas Eppelt's avatar Jonas Eppelt
Browse files

using no-cache to get updated packages at every new build

parent 14e5fef1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment