File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed 
datascience-notebook/hooks Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set  -e
3+ 
4+ #  Tag the latest build with the short git sha as well as version of key runtimes
5+ #  and packages. 
6+ GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12} 
7+ docker tag $IMAGE_NAME  " $DOCKER_REPO :$GIT_SHA_TAG " 
8+ PY_VERSION_TAG=" python-$( docker run --rm ${IMAGE_NAME}  python --version 2>&1  |  awk ' {print $2}' ) " 
9+ docker tag $IMAGE_NAME  " $DOCKER_REPO :$PY_VERSION_TAG " 
10+ R_VERSION_TAG==" r-$( docker run --rm -a STDOUT ${IMAGE_NAME}  R --version |  sed -n 1p |  awk ' {print $3}' ) " 
11+ docker tag $IMAGE_NAME  " $DOCKER_REPO :${R_VERSION_TAG%% \r } " 
12+ JULIA_VERSION_TAG==" julia-$( docker run --rm -a STDOUT ${IMAGE_NAME}  julia --version |  awk ' {print $3}' ) " 
13+ docker tag $IMAGE_NAME  " $DOCKER_REPO :${JULIA_VERSION_TAG%% \r } " 
14+ NB_VERSION_TAG=" notebook-$( docker run --rm -a STDOUT ${IMAGE_NAME}  jupyter-notebook --version |  tr -d ' \r' ) " 
15+ docker tag $IMAGE_NAME  " $DOCKER_REPO :${NB_VERSION_TAG%%  } " 
16+ LAB_VERSION_TAG=" lab-$( docker run --rm -a STDOUT ${IMAGE_NAME}  jupyter-lab --version |  tr -d ' \r' ) " 
17+ docker tag $IMAGE_NAME  " $DOCKER_REPO :${LAB_VERSION_TAG%% \r } " 
18+ HUB_VERSION_TAG=" hub-$( docker run --rm -a STDOUT ${IMAGE_NAME}  jupyterhub --version |  tr -d ' \r' ) " 
19+ docker tag $IMAGE_NAME  " $DOCKER_REPO :${HUB_VERSION_TAG%% \r } " 
Original file line number Diff line number Diff line change 11#! /bin/bash
22set  -e
33
4+ #  Apply and push all tags
5+ source  hooks/apply_tags
6+ docker push $DOCKER_REPO 
7+ 
48#  Tag the latest build with the short git sha. Push the tag in addition
59#  to the "latest" tag already pushed.
610GIT_SHA_TAG=${SOURCE_COMMIT: 0: 12} 
4852for  url  in  $( echo $NEXT_BUILD_TRIGGERS  |  sed " s/,/ /g" ) 
4953do 
5054    curl -X POST $url 
51- done 
55+ done 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments