add dependencies
This commit is contained in:
		
							parent
							
								
									3d3bd42a76
								
							
						
					
					
						commit
						13eb32b03b
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		|  | @ -33,6 +33,7 @@ APP_VERSION=${12} | ||||||
| CHART_VERSION=${13} | CHART_VERSION=${13} | ||||||
| INDEX_DIR=${14} | INDEX_DIR=${14} | ||||||
| ENTERPRISE_URL=${15} | ENTERPRISE_URL=${15} | ||||||
|  | DEPENDENCIES=${$16} | ||||||
| 
 | 
 | ||||||
| CHARTS=() | CHARTS=() | ||||||
| CHARTS_TMP_DIR=$(mktemp -d) | CHARTS_TMP_DIR=$(mktemp -d) | ||||||
|  | @ -126,8 +127,13 @@ download() { | ||||||
|   rm -rf $tmpDir |   rm -rf $tmpDir | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| get_repo() { | get_dependencies() { | ||||||
|   helm repo add matrixx https://raw.githubusercontent.com/weaveworks-20276/customer-info/gh-pages --username paul-calton --password ${GITHUB_TOKEN} |   IFS=';' read -ra depenency <<< "$DEPENDENCIES" | ||||||
|  |   for repos in ${dependency[@]}; do | ||||||
|  |     name=$(cut -f 1 -d, <<< "$repos") | ||||||
|  |     url=$(cut -f 2 -d, <<< "$repos") | ||||||
|  |     helm repo add ${name} ${url} | ||||||
|  |   done | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies() { | dependencies() { | ||||||
|  | @ -183,7 +189,7 @@ upload() { | ||||||
|   git add ${INDEX_DIR}/index.yaml |   git add ${INDEX_DIR}/index.yaml | ||||||
| 
 | 
 | ||||||
|   git commit -m "Publish $charts" |   git commit -m "Publish $charts" | ||||||
|   git push origin ${BRANCH} |   git push ${BRANCH} | ||||||
| 
 | 
 | ||||||
|   popd >& /dev/null |   popd >& /dev/null | ||||||
|   rm -rf $tmpDir |   rm -rf $tmpDir | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Paul Carlton
						Paul Carlton