mirror of
				https://github.com/mgechev/revive.git
				synced 2025-10-30 23:37:49 +02:00 
			
		
		
		
	Add tags to docker images built by GoReleaser (#794)
fixes Missing tag "latest" on container images uploaded to ghcr.io #786
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							10d4f5fb1c
						
					
				
				
					commit
					cab1184197
				
			| @@ -24,17 +24,22 @@ builds: | ||||
|       - windows | ||||
|  | ||||
| dockers: | ||||
| - image_templates: ["ghcr.io/mgechev/revive:{{ .Version }}"] | ||||
|   dockerfile: Dockerfile | ||||
|   build_flag_templates: | ||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} | ||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} | ||||
|   - --label=org.opencontainers.image.url=https://github.com/mgechev/revive | ||||
|   - --label=org.opencontainers.image.source=https://github.com/mgechev/revive | ||||
|   - --label=org.opencontainers.image.version={{ .Version }} | ||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} | ||||
|   - --label=org.opencontainers.image.licenses=MIT | ||||
|    | ||||
|   - image_templates: | ||||
|       - "ghcr.io/mgechev/revive:{{ .Version }}" | ||||
|       - "ghcr.io/mgechev/revive:{{ .Tag }}" | ||||
|       - "ghcr.io/mgechev/revive:v{{ .Major }}.{{ .Minor }}" | ||||
|       - "ghcr.io/mgechev/revive:v{{ .Major }}" | ||||
|       - "ghcr.io/mgechev/revive:latest" | ||||
|     dockerfile: Dockerfile | ||||
|     build_flag_templates: | ||||
|       - --label=org.opencontainers.image.created={{.Date}} | ||||
|       - --label=org.opencontainers.image.title={{ .ProjectName }} | ||||
|       - "--label=org.opencontainers.image.description=🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint" | ||||
|       - --label=org.opencontainers.image.url=https://github.com/mgechev/revive | ||||
|       - --label=org.opencontainers.image.source=https://github.com/mgechev/revive | ||||
|       - --label=org.opencontainers.image.version={{ .Version }} | ||||
|       - --label=org.opencontainers.image.revision={{ .FullCommit }} | ||||
|       - --label=org.opencontainers.image.licenses=MIT | ||||
| changelog: | ||||
|   filters: | ||||
|     exclude: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user