mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	Docker --cache-from only uses first image
See also https://stackoverflow.com/a/56024061/8924614
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/release-dev.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release-dev.yml
									
									
									
									
										vendored
									
									
								
							| @@ -204,8 +204,6 @@ jobs: | |||||||
|           echo "::set-env name=DOCKERFILE::${dockerfile}" |           echo "::set-env name=DOCKERFILE::${dockerfile}" | ||||||
|       - name: Pull for cache |       - name: Pull for cache | ||||||
|         run: | |         run: | | ||||||
|           docker pull "${BUILD_TO}:latest" || true |  | ||||||
|           docker pull "${BUILD_TO}:beta" || true |  | ||||||
|           docker pull "${BUILD_TO}:dev" || true |           docker pull "${BUILD_TO}:dev" || true | ||||||
|       - name: Register QEMU binfmt |       - name: Register QEMU binfmt | ||||||
|         run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes |         run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes | ||||||
| @@ -215,8 +213,6 @@ jobs: | |||||||
|             --build-arg "BUILD_VERSION=${TAG}" \ |             --build-arg "BUILD_VERSION=${TAG}" \ | ||||||
|             --tag "${BUILD_TO}:${TAG}" \ |             --tag "${BUILD_TO}:${TAG}" \ | ||||||
|             --tag "${BUILD_TO}:dev" \ |             --tag "${BUILD_TO}:dev" \ | ||||||
|             --cache-from "${BUILD_TO}:latest" \ |  | ||||||
|             --cache-from "${BUILD_TO}:beta" \ |  | ||||||
|             --cache-from "${BUILD_TO}:dev" \ |             --cache-from "${BUILD_TO}:dev" \ | ||||||
|             --file "${DOCKERFILE}" \ |             --file "${DOCKERFILE}" \ | ||||||
|             . |             . | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -225,8 +225,6 @@ jobs: | |||||||
|       - name: Pull for cache |       - name: Pull for cache | ||||||
|         run: | |         run: | | ||||||
|           docker pull "${BUILD_TO}:latest" || true |           docker pull "${BUILD_TO}:latest" || true | ||||||
|           docker pull "${BUILD_TO}:beta" || true |  | ||||||
|           docker pull "${BUILD_TO}:dev" || true |  | ||||||
|       - name: Register QEMU binfmt |       - name: Register QEMU binfmt | ||||||
|         run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes |         run: docker run --rm --privileged multiarch/qemu-user-static:5.0.0-2 --reset -p yes | ||||||
|       - run: | |       - run: | | ||||||
| @@ -235,8 +233,6 @@ jobs: | |||||||
|             --build-arg "BUILD_VERSION=${TAG}" \ |             --build-arg "BUILD_VERSION=${TAG}" \ | ||||||
|             --tag "${BUILD_TO}:${TAG}" \ |             --tag "${BUILD_TO}:${TAG}" \ | ||||||
|             --cache-from "${BUILD_TO}:latest" \ |             --cache-from "${BUILD_TO}:latest" \ | ||||||
|             --cache-from "${BUILD_TO}:beta" \ |  | ||||||
|             --cache-from "${BUILD_TO}:dev" \ |  | ||||||
|             --file "${DOCKERFILE}" \ |             --file "${DOCKERFILE}" \ | ||||||
|             . |             . | ||||||
|       - name: Log in to docker hub |       - name: Log in to docker hub | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user