mirror of
				https://gitea.com/docker/build-push-action.git
				synced 2025-10-31 09:08:18 +07:00 
			
		
		
		
	Writes cache metadata into the image configuration
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5538ea42ec
								
							
						
					
					
						commit
						9e2936f9ed
					
				
							
								
								
									
										20
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -254,16 +254,12 @@ jobs: | |||||||
|           tags: | |           tags: | | ||||||
|             localhost:5000/name/app:latest |             localhost:5000/name/app:latest | ||||||
|             localhost:5000/name/app:1.0.0 |             localhost:5000/name/app:1.0.0 | ||||||
|           cache-from: type=registry,ref=localhost:5000/name/app:cache |           cache-from: type=registry,ref=localhost:5000/name/app | ||||||
|           cache-to: type=registry,ref=localhost:5000/name/app:cache |           cache-to: type=inline | ||||||
|       - |       - | ||||||
|         name: Inspect (1) |         name: Inspect (1) | ||||||
|         run: | |         run: | | ||||||
|           docker buildx imagetools inspect localhost:5000/name/app:1.0.0 |           docker buildx imagetools inspect localhost:5000/name/app:latest | ||||||
|       - |  | ||||||
|         name: Inspect cache (1) |  | ||||||
|         run: | |  | ||||||
|           docker buildx imagetools inspect localhost:5000/name/app:cache |  | ||||||
|       - |       - | ||||||
|         name: Image digest (1) |         name: Image digest (1) | ||||||
|         run: echo ${{ steps.docker_build.outputs.digest }} |         run: echo ${{ steps.docker_build.outputs.digest }} | ||||||
| @ -284,16 +280,12 @@ jobs: | |||||||
|           tags: | |           tags: | | ||||||
|             localhost:5000/name/app:latest |             localhost:5000/name/app:latest | ||||||
|             localhost:5000/name/app:1.0.0 |             localhost:5000/name/app:1.0.0 | ||||||
|           cache-from: type=registry,ref=localhost:5000/name/app:cache |           cache-from: type=registry,ref=localhost:5000/name/app | ||||||
|           cache-to: type=registry,ref=localhost:5000/name/app:cache |           cache-to: type=inline | ||||||
|       - |       - | ||||||
|         name: Inspect (2) |         name: Inspect (2) | ||||||
|         run: | |         run: | | ||||||
|           docker buildx imagetools inspect localhost:5000/name/app:1.0.0 |           docker buildx imagetools inspect localhost:5000/name/app:latest | ||||||
|       - |  | ||||||
|         name: Inspect cache (2) |  | ||||||
|         run: | |  | ||||||
|           docker buildx imagetools inspect localhost:5000/name/app:cache |  | ||||||
|       - |       - | ||||||
|         name: Image digest (2) |         name: Image digest (2) | ||||||
|         run: echo ${{ steps.docker_build2.outputs.digest }} |         run: echo ${{ steps.docker_build2.outputs.digest }} | ||||||
|  | |||||||
| @ -66,8 +66,8 @@ steps: | |||||||
|       pull: true |       pull: true | ||||||
|       push: true |       push: true | ||||||
|       build-args: arg1=value1,arg2=value2 |       build-args: arg1=value1,arg2=value2 | ||||||
|       cache-from: type=registry,ref=myorg/myrepository:cache |       cache-from: type=registry,ref=myorg/myrepository:latest | ||||||
|       cache-to: type=registry,ref=myorg/myrepository:cache |       cache-to: type=inline | ||||||
|       tags: myorg/myrepository:latest |       tags: myorg/myrepository:latest | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user