mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[github] Upgrade to actions/{upload,download}-artifact v4 (#6698)
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/actions/build-image/action.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/actions/build-image/action.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -57,14 +57,6 @@ runs: | |||||||
|         digest="${{ steps.build-ghcr.outputs.digest }}" |         digest="${{ steps.build-ghcr.outputs.digest }}" | ||||||
|         touch "/tmp/digests/${{ inputs.target }}/ghcr/${digest#sha256:}" |         touch "/tmp/digests/${{ inputs.target }}/ghcr/${digest#sha256:}" | ||||||
|  |  | ||||||
|     - name: Upload ghcr digest |  | ||||||
|       uses: actions/upload-artifact@v3.1.3 |  | ||||||
|       with: |  | ||||||
|         name: digests-${{ inputs.target }}-ghcr |  | ||||||
|         path: /tmp/digests/${{ inputs.target }}/ghcr/* |  | ||||||
|         if-no-files-found: error |  | ||||||
|         retention-days: 1 |  | ||||||
|  |  | ||||||
|     - name: Build and push to dockerhub by digest |     - name: Build and push to dockerhub by digest | ||||||
|       id: build-dockerhub |       id: build-dockerhub | ||||||
|       uses: docker/build-push-action@v5.3.0 |       uses: docker/build-push-action@v5.3.0 | ||||||
| @@ -87,11 +79,3 @@ runs: | |||||||
|         mkdir -p /tmp/digests/${{ inputs.target }}/dockerhub |         mkdir -p /tmp/digests/${{ inputs.target }}/dockerhub | ||||||
|         digest="${{ steps.build-dockerhub.outputs.digest }}" |         digest="${{ steps.build-dockerhub.outputs.digest }}" | ||||||
|         touch "/tmp/digests/${{ inputs.target }}/dockerhub/${digest#sha256:}" |         touch "/tmp/digests/${{ inputs.target }}/dockerhub/${digest#sha256:}" | ||||||
|  |  | ||||||
|     - name: Upload dockerhub digest |  | ||||||
|       uses: actions/upload-artifact@v3.1.3 |  | ||||||
|       with: |  | ||||||
|         name: digests-${{ inputs.target }}-dockerhub |  | ||||||
|         path: /tmp/digests/${{ inputs.target }}/dockerhub/* |  | ||||||
|         if-no-files-found: error |  | ||||||
|         retention-days: 1 |  | ||||||
|   | |||||||
							
								
								
									
										16
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -132,6 +132,13 @@ jobs: | |||||||
|           suffix: lint |           suffix: lint | ||||||
|           version: ${{ needs.init.outputs.tag }} |           version: ${{ needs.init.outputs.tag }} | ||||||
|  |  | ||||||
|  |       - name: Upload digests | ||||||
|  |         uses: actions/upload-artifact@v4.3.3 | ||||||
|  |         with: | ||||||
|  |           name: digests-${{ matrix.platform }} | ||||||
|  |           path: /tmp/digests | ||||||
|  |           retention-days: 1 | ||||||
|  |  | ||||||
|   deploy-manifest: |   deploy-manifest: | ||||||
|     name: Publish ESPHome ${{ matrix.image.title }} to ${{ matrix.registry }} |     name: Publish ESPHome ${{ matrix.image.title }} to ${{ matrix.registry }} | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @@ -160,11 +167,14 @@ jobs: | |||||||
|           - dockerhub |           - dockerhub | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4.1.5 |       - uses: actions/checkout@v4.1.5 | ||||||
|  |  | ||||||
|       - name: Download digests |       - name: Download digests | ||||||
|         uses: actions/download-artifact@v3.0.2 |         uses: actions/download-artifact@v4.1.7 | ||||||
|         with: |         with: | ||||||
|           name: digests-${{ matrix.image.target }}-${{ matrix.registry }} |           pattern: digests-* | ||||||
|           path: /tmp/digests |           path: /tmp/digests | ||||||
|  |           merge-multiple: true | ||||||
|  |  | ||||||
|       - name: Set up Docker Buildx |       - name: Set up Docker Buildx | ||||||
|         uses: docker/setup-buildx-action@v3.3.0 |         uses: docker/setup-buildx-action@v3.3.0 | ||||||
|  |  | ||||||
| @@ -195,7 +205,7 @@ jobs: | |||||||
|           done |           done | ||||||
|  |  | ||||||
|       - name: Create manifest list and push |       - name: Create manifest list and push | ||||||
|         working-directory: /tmp/digests |         working-directory: /tmp/digests/${{ matrix.image.target }}/${{ matrix.registry }} | ||||||
|         run: | |         run: | | ||||||
|           docker buildx imagetools create $(jq -Rcnr 'inputs | . / "," | map("-t " + .) | join(" ")' <<< "${{ steps.tags.outputs.tags}}") \ |           docker buildx imagetools create $(jq -Rcnr 'inputs | . / "," | map("-t " + .) | join(" ")' <<< "${{ steps.tags.outputs.tags}}") \ | ||||||
|             $(printf '${{ steps.tags.outputs.image }}@sha256:%s ' *) |             $(printf '${{ steps.tags.outputs.image }}@sha256:%s ' *) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user