mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Do not publish docker release images on -dev tags (#25471)
				
					
				
			Try to prevent what happened with tag `v1.21.0-dev` as outlined in #25193. Unfortunately, we cannot really test if it works as intended as we would need to release a new `dev` tag for that. Fixes #25193 (or at least attempts to). --------- Co-authored-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -1,12 +1,14 @@
 | 
				
			|||||||
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}}nightly{{/if}}-rootless
 | 
					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}}nightly{{/if}}-rootless
 | 
				
			||||||
{{#if build.tags}}
 | 
					{{#if build.tags}}
 | 
				
			||||||
{{#unless (contains "-rc" build.tag)}}
 | 
					{{#unless (contains "-rc" build.tag)}}
 | 
				
			||||||
 | 
					{{#unless (contains "-dev" build.tag)}}
 | 
				
			||||||
tags:
 | 
					tags:
 | 
				
			||||||
{{#each build.tags}}
 | 
					{{#each build.tags}}
 | 
				
			||||||
  - {{this}}-rootless
 | 
					  - {{this}}-rootless
 | 
				
			||||||
{{/each}}
 | 
					{{/each}}
 | 
				
			||||||
  - "latest-rootless"
 | 
					  - "latest-rootless"
 | 
				
			||||||
{{/unless}}
 | 
					{{/unless}}
 | 
				
			||||||
 | 
					{{/unless}}
 | 
				
			||||||
{{/if}}
 | 
					{{/if}}
 | 
				
			||||||
manifests:
 | 
					manifests:
 | 
				
			||||||
  -
 | 
					  -
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,14 @@
 | 
				
			|||||||
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}}nightly{{/if}}
 | 
					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}}nightly{{/if}}
 | 
				
			||||||
{{#if build.tags}}
 | 
					{{#if build.tags}}
 | 
				
			||||||
{{#unless (contains "-rc" build.tag)}}
 | 
					{{#unless (contains "-rc" build.tag)}}
 | 
				
			||||||
 | 
					{{#unless (contains "-dev" build.tag)}}
 | 
				
			||||||
tags:
 | 
					tags:
 | 
				
			||||||
{{#each build.tags}}
 | 
					{{#each build.tags}}
 | 
				
			||||||
  - {{this}}
 | 
					  - {{this}}
 | 
				
			||||||
{{/each}}
 | 
					{{/each}}
 | 
				
			||||||
  - "latest"
 | 
					  - "latest"
 | 
				
			||||||
{{/unless}}
 | 
					{{/unless}}
 | 
				
			||||||
 | 
					{{/unless}}
 | 
				
			||||||
{{/if}}
 | 
					{{/if}}
 | 
				
			||||||
manifests:
 | 
					manifests:
 | 
				
			||||||
  -
 | 
					  -
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user