gitea workflow for build and push smarti-helm-chart #1
| @ -21,8 +21,6 @@ jobs: | |||||||
|         run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash |         run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | ||||||
|       - name: Lint Helm Chart |       - name: Lint Helm Chart | ||||||
|         run: helm lint . |         run: helm lint . | ||||||
|       - name: pack helm release |  | ||||||
|         run: helm package . |  | ||||||
|   push: |   push: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     container: |     container: | ||||||
| @ -34,7 +32,12 @@ jobs: | |||||||
|           fetch-depth: 0 # all history for all branches and tags |           fetch-depth: 0 # all history for all branches and tags | ||||||
|       - name: Install Helm |       - name: Install Helm | ||||||
|         run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash |         run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | ||||||
|  |       - name: pack helm release | ||||||
|  |         run: helm package . | ||||||
|       - name: Get Package Name |       - name: Get Package Name | ||||||
|         run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT |         run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT | ||||||
|  |       - run: echo ${HELM_USER}>> $GITHUB_OUTPUT | ||||||
|  |       - run: echo ${PACKAGE_NAME}>> $GITHUB_OUTPUT | ||||||
|  |       - run: echo ${HELM_REPO}>> $GITHUB_OUTPUT | ||||||
|       - name: Push to Package Repo |       - name: Push to Package Repo | ||||||
|         run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} |         run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user