ci: fix chart publish workflow (#874)
* ci: correcting cross job output syntax * ci: adding job names
This commit is contained in:
		
							parent
							
								
									b01e193aab
								
							
						
					
					
						commit
						8657a34f32
					
				|  | @ -15,6 +15,7 @@ env: | ||||||
| jobs: | jobs: | ||||||
|   lint-test: |   lint-test: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     name: Lint Chart | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|  |  | ||||||
|  | @ -18,6 +18,9 @@ env: | ||||||
| jobs: | jobs: | ||||||
|   lint-chart: |   lint-chart: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     name: Lint Chart | ||||||
|  |     outputs: | ||||||
|  |       publish-chart: ${{ steps.publish-chart-step.outputs.publish }} | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|  | @ -81,7 +84,7 @@ jobs: | ||||||
| 
 | 
 | ||||||
|       # WARNING: This relies on the latest release being inat the top of the JSON from GitHub and a clean chart.yaml |       # WARNING: This relies on the latest release being inat the top of the JSON from GitHub and a clean chart.yaml | ||||||
|       - name: Check if Chart Publish is Needed |       - name: Check if Chart Publish is Needed | ||||||
|         id: publish-chart |         id: publish-chart-step | ||||||
|         run: | |         run: | | ||||||
|           CHART_TEXT=$(curl -fs https://raw.githubusercontent.com/actions-runner-controller/actions-runner-controller/master/charts/actions-runner-controller/Chart.yaml) |           CHART_TEXT=$(curl -fs https://raw.githubusercontent.com/actions-runner-controller/actions-runner-controller/master/charts/actions-runner-controller/Chart.yaml) | ||||||
|           NEW_CHART_VERSION=$(echo "$CHART_TEXT" | grep version: | cut -d ' ' -f 2) |           NEW_CHART_VERSION=$(echo "$CHART_TEXT" | grep version: | cut -d ' ' -f 2) | ||||||
|  | @ -94,9 +97,10 @@ jobs: | ||||||
|           fi |           fi | ||||||
| 
 | 
 | ||||||
|   publish-chart: |   publish-chart: | ||||||
|     if: steps.publish-chart.outputs.publish == 'true' |     if: needs.lint-chart.outputs.publish-chart == 'true' | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     needs: lint-chart |     needs: lint-chart | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     name: Publish Chart | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Checkout | ||||||
|  |  | ||||||
|  | @ -17,7 +17,7 @@ on: | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     name: release-latest |     name: Build and Publish Canary Image | ||||||
|     env: |     env: | ||||||
|       DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }} |       DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }} | ||||||
|     steps: |     steps: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue