chore: Deduplicate checkout steps
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	
This commit is contained in:
		| @@ -2,11 +2,25 @@ name: Container & Helm chart | |||||||
| on: [push] | on: [push] | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   Semantic Release (Dry-run): |   Checkout: | ||||||
|     runs-on: dind-rootless |     runs-on: dind | ||||||
|     steps: |     steps: | ||||||
|       - name: Check out repository code |       - name: Check out repository code | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|  |       - name: Store repository as artifact | ||||||
|  |         uses: actions/upload-artifact@v4 | ||||||
|  |         with: | ||||||
|  |           name: source | ||||||
|  |           path: | | ||||||
|  |             . | ||||||
|  |   Semantic Release (Dry-run): | ||||||
|  |     runs-on: dind-rootless | ||||||
|  |     needs: Checkout | ||||||
|  |     steps: | ||||||
|  |       - name: Download repository | ||||||
|  |         uses: actions/download-artifact@v4 | ||||||
|  |         with: | ||||||
|  |           name: source | ||||||
|       - name: Setup Node |       - name: Setup Node | ||||||
|         uses: actions/setup-node@v3 |         uses: actions/setup-node@v3 | ||||||
|         with: |         with: | ||||||
| @@ -43,8 +57,10 @@ jobs: | |||||||
|     runs-on: dind |     runs-on: dind | ||||||
|     needs: Semantic Release (Dry-run) |     needs: Semantic Release (Dry-run) | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Download repository | ||||||
|         uses: actions/checkout@v4 |         uses: actions/download-artifact@v4 | ||||||
|  |         with: | ||||||
|  |           name: source | ||||||
|       - name: Kaniko build |       - name: Kaniko build | ||||||
|         uses: aevea/action-kaniko@master |         uses: aevea/action-kaniko@master | ||||||
|         with: |         with: | ||||||
| @@ -60,8 +76,10 @@ jobs: | |||||||
|     needs: Semantic Release (Dry-run) |     needs: Semantic Release (Dry-run) | ||||||
|  |  | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - name: Download repository | ||||||
|         uses: actions/checkout@v4 |         uses: actions/download-artifact@v4 | ||||||
|  |         with: | ||||||
|  |           name: source | ||||||
|       - name: Inject semantic release version |       - name: Inject semantic release version | ||||||
|         run: | |         run: | | ||||||
|           sed -i 's/{{ chart_version }}/'${{ steps.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/Chart.yaml |           sed -i 's/{{ chart_version }}/'${{ steps.sem_rel.outputs.version }}'/g' charts/spamasaurusrex/Chart.yaml | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user