File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
1515#  This is the chart version. This version number should be incremented each time you make changes
1616#  to the chart and its templates, including the app version.
1717#  Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 0.2.3  
18+ version : 0.2.4  
1919
2020#  This is the version number of the application being deployed. This version number should be
2121#  incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 3131echo  " Semaphore toolbox successfully installed." 
3232
3333#  Create SSH configuration.
34- #  This is required in order to avoid having to manually accept the GitHub SSH keys fingerprints on checkout.
35- #  Ideally, we should populate ~/.ssh/known_hosts with the GitHub keys from api.github.com/meta.
34+ #  This is required to avoid manually accepting the Server SSH key fingerprints on checkout.
3635mkdir -p ~ /.ssh
36+ 
37+ # 
38+ #  Do it for GitHub for backwards compatibility
39+ # 
3740echo  ' Host github.com' |  tee -a ~ /.ssh/config
3841echo  '   StrictHostKeyChecking no' |  tee -a ~ /.ssh/config
3942echo  '   UserKnownHostsFile=/dev/null' |  tee -a ~ /.ssh/config
43+ 
44+ # 
45+ #  Do it for currently used one
46+ # 
47+ url=" ${SEMAPHORE_GIT_URL# ssh:// } " #  Remove the "ssh://" scheme if present
48+ url=" ${url#*@ } " #  Remove everything up to (and including) the '@' if present
49+ host=" ${url%% [:/]* } " #  Now extract the host: it's the substring until the first occurrence of either ':' (port separator) or '/' (path separator)
50+ 
51+ echo  " Host ${host} " |  tee -a ~ /.ssh/config
52+ echo  '   StrictHostKeyChecking no' |  tee -a ~ /.ssh/config
53+ echo  '   UserKnownHostsFile=/dev/null' |  tee -a ~ /.ssh/config
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments