1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

Fix Docker meta action for releases (#28232) (#28395)

This commit is contained in:
Giteabot 2023-12-08 08:29:17 +08:00 committed by GitHub
parent 272ae03341
commit 3107093394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -78,6 +78,8 @@ jobs:
id: meta id: meta
with: with:
images: gitea/gitea images: gitea/gitea
flavor: |
latest=false
# 1.2.3-rc0 # 1.2.3-rc0
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
@ -109,6 +111,7 @@ jobs:
images: gitea/gitea images: gitea/gitea
# each tag below will have the suffix of -rootless # each tag below will have the suffix of -rootless
flavor: | flavor: |
latest=false
suffix=-rootless suffix=-rootless
# 1.2.3-rc0 # 1.2.3-rc0
tags: | tags: |

View File

@ -86,7 +86,6 @@ jobs:
# 1.2 # 1.2
# 1.2.3 # 1.2.3
tags: | tags: |
type=raw,value=latest
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}} type=semver,pattern={{version}}
@ -118,14 +117,13 @@ jobs:
images: gitea/gitea images: gitea/gitea
# each tag below will have the suffix of -rootless # each tag below will have the suffix of -rootless
flavor: | flavor: |
suffix=-rootless suffix=-rootless,onlatest=true
# this will generate tags in the following format (with -rootless suffix added): # this will generate tags in the following format (with -rootless suffix added):
# latest # latest
# 1 # 1
# 1.2 # 1.2
# 1.2.3 # 1.2.3
tags: | tags: |
type=raw,value=latest
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}} type=semver,pattern={{version}}