mirror of
				https://gitea.com/docker/build-push-action.git
				synced 2025-10-31 00:58:18 +07:00 
			
		
		
		
	Merge pull request #354 from crazy-max/docker-metadata
Update examples with `docker/metadata-action`
This commit is contained in:
		
						commit
						8e1d874ee2
					
				
							
								
								
									
										2
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							| @ -59,7 +59,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Docker meta |         name: Docker meta | ||||||
|         id: meta |         id: meta | ||||||
|         uses: crazy-max/ghaction-docker-meta@v2 |         uses: docker/metadata-action@v3 | ||||||
|         with: |         with: | ||||||
|           images: ${{ matrix.slug }} |           images: ${{ matrix.slug }} | ||||||
|       - |       - | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.github/workflows/example.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/example.yml
									
									
									
									
										vendored
									
									
								
							| @ -29,7 +29,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Docker meta |         name: Docker meta | ||||||
|         id: meta |         id: meta | ||||||
|         uses: crazy-max/ghaction-docker-meta@v2 |         uses: docker/metadata-action@v3 | ||||||
|         with: |         with: | ||||||
|           images: ${{ env.DOCKER_IMAGE }} |           images: ${{ env.DOCKER_IMAGE }} | ||||||
|           tags: | |           tags: | | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| If you come from [`v1`](https://github.com/docker/build-push-action/tree/releases/v1#readme) and want an | If you come from [`v1`](https://github.com/docker/build-push-action/tree/releases/v1#readme) and want an | ||||||
| "automatic" tag management and [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md) | "automatic" tag management and [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md) | ||||||
| for labels, you can do it in a dedicated step. The following workflow will use the [Docker meta action](https://github.com/crazy-max/ghaction-docker-meta) | for labels, you can do it in a dedicated step. The following workflow will use the [Docker metadata action](https://github.com/docker/metadata-action) | ||||||
| to handle tags and labels based on GitHub actions events and Git metadata. | to handle tags and labels based on GitHub actions events and Git metadata. | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
| @ -30,7 +30,7 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Docker meta |         name: Docker meta | ||||||
|         id: meta |         id: meta | ||||||
|         uses: crazy-max/ghaction-docker-meta@v2 |         uses: docker/metadata-action@v3 | ||||||
|         with: |         with: | ||||||
|           # list of Docker images to use as base name for tags |           # list of Docker images to use as base name for tags | ||||||
|           images: | |           images: | | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user