diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d17cd1b6cf7ca5242e7d525b1cfed60b1828988b..5e8667fc3de83e5964464f39f0041593ccb9bef3 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,12 +34,12 @@ create_jupytermachine_version: for image in "${IMAGES[@]}"; do # Read the existing base image from the Dockerfile OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}'); - echo $OLD_BASE_IMAGE + echo $OLD_BASE_IMAGE; # Replace "basic_jupytermachine" with the new base image name - NEW_BASE_IMAGE=$(IMAGE_PREFIX/etp_${image}); - echo $NEW_BASE_IMAGE + NEW_BASE_IMAGE=$IMAGE_PREFIX/etp_$image; + echo $NEW_BASE_IMAGE; sed -i "s/$OLD_BASE_IMAGE/$NEW_BASE_IMAGE/" "Dockerfile"; - cat Dockerfile + cat Dockerfile; # Build the second version of the container docker build -t "$IMAGE_PREFIX/jupytermachine_${image}" -f "Dockerfile" .; docker push "$IMAGE_PREFIX/jupytermachine_${image}";