mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 00:02:20 -05:00 
			
		
		
		
	* Fix pushing to 1-x-dev docker tag It appears that #18551 and #18573 have a mistake in that raymond does not have an {{else}} on {{#equal}}. This PR notes that Sprig has a hasPrefix function and so we use this with another if. Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix pushing to 1-x-dev docker tag (part 2) Although we now have the manifest working, we need to create the images. Here we adjust the .drone.yml to force building of the images Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix pushing to 1-x-dev docker tag OK now we have the images building we should make sure that the main ones stays dev and the release/v* ones become *-dev-* Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review
		
			
				
	
	
		
			21 lines
		
	
	
		
			886 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			886 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-rootless
 | 
						|
{{#if build.tags}}
 | 
						|
tags:
 | 
						|
{{#each build.tags}}
 | 
						|
  - {{this}}-rootless
 | 
						|
{{/each}}
 | 
						|
  - "latest-rootless"
 | 
						|
{{/if}}
 | 
						|
manifests:
 | 
						|
  -
 | 
						|
    image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-amd64-rootless
 | 
						|
    platform:
 | 
						|
      architecture: amd64
 | 
						|
      os: linux
 | 
						|
  -
 | 
						|
    image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-arm64-rootless
 | 
						|
    platform:
 | 
						|
      architecture: arm64
 | 
						|
      os: linux
 | 
						|
      variant: v8
 |