mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 10:47:48 +00:00 
			
		
		
		
	[WIFI-7555] Add: Helm packaging and GitHub release step
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
		
							
								
								
									
										46
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | |||||||
|  | name: Release chart package | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     tags: | ||||||
|  |       - 'v*' | ||||||
|  |  | ||||||
|  | defaults: | ||||||
|  |   run: | ||||||
|  |     shell: bash | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   helm-package: | ||||||
|  |     runs-on: ubuntu-20.04 | ||||||
|  |     env: | ||||||
|  |       HELM_REPO_URL: https://tip.jfrog.io/artifactory/tip-wlan-cloud-ucentral-helm/ | ||||||
|  |       HELM_REPO_USERNAME: ucentral | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout uCentral assembly chart repo | ||||||
|  |         uses: actions/checkout@v2 | ||||||
|  |         with: | ||||||
|  |           path: wlan-cloud-ucentralsec | ||||||
|  |  | ||||||
|  |       - name: Build package | ||||||
|  |         working-directory: wlan-cloud-ucentralsec/chart | ||||||
|  |         run: | | ||||||
|  |           helm plugin install https://github.com/aslafy-z/helm-git --version 0.10.0 | ||||||
|  |           helm repo add bitnami https://charts.bitnami.com/bitnami | ||||||
|  |           helm repo update | ||||||
|  |           helm dependency update | ||||||
|  |           mkdir dist | ||||||
|  |           helm package . -d dist | ||||||
|  |  | ||||||
|  |       - name: Generate GitHub release body | ||||||
|  |         working-directory: wlan-cloud-ucentralsec/chart | ||||||
|  |         run: | | ||||||
|  |           pip3 install yq -q | ||||||
|  |           echo "Docker image - tip-tip-wlan-cloud-ucentral.jfrog.io/owsec:$GITHUB_REF_NAME" > release.txt | ||||||
|  |           echo "Helm charted may be attached to this release" >> release.txt | ||||||
|  |           echo "Deployment artifacts may be found in https://github.com/Telecominfraproject/wlan-cloud-ucentral-deploy/tree/$GITHUB_REF_NAME" >> release.txt | ||||||
|  |  | ||||||
|  |       - name: Create GitHub release | ||||||
|  |         uses: softprops/action-gh-release@v1 | ||||||
|  |         with: | ||||||
|  |           body_path: wlan-cloud-ucentralsec/chart/release.txt | ||||||
|  |           files: wlan-cloud-ucentralsec/chart/dist/* | ||||||
		Reference in New Issue
	
	Block a user
	 Dmitry Dunaev
					Dmitry Dunaev