Skip to content

Commit 7c80a0b

Browse files
authored
Ensure that drone tags 1.16.x and 1.16 on push to v1.16.x tag (go-gitea#20304)
We need pushes to v1.16.9 to create tags to 1.16.9 and 1.16 but not 1 or latest. We have previously adjusted the manifest to remove the latest tag, and have removed auto_tags so that 1 does not get tagged but in doing so we also stopped 1.16 being tagged. So here we just state the that we tag x.yy in addition to x.yyz*. Signed-off-by: Andrew Thornton <[email protected]>
1 parent b42df31 commit 7c80a0b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.drone.yml

+12
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,9 @@ steps:
904904
settings:
905905
auto_tag: false
906906
auto_tag_suffix: linux-amd64
907+
tags:
908+
- ${DRONE_TAG##v}-linux-amd64
909+
- ${DRONE_TAG:1:4}-linux-amd64
907910
repo: gitea/gitea
908911
build_args:
909912
- GOPROXY=https://goproxy.io
@@ -922,6 +925,9 @@ steps:
922925
dockerfile: Dockerfile.rootless
923926
auto_tag: false
924927
auto_tag_suffix: linux-amd64-rootless
928+
tags:
929+
- ${DRONE_TAG##v}-linux-amd64-rootless
930+
- ${DRONE_TAG:1:4}-linux-amd64-rootless
925931
repo: gitea/gitea
926932
build_args:
927933
- GOPROXY=https://goproxy.io
@@ -1128,6 +1134,9 @@ steps:
11281134
settings:
11291135
auto_tag: false
11301136
auto_tag_suffix: linux-arm64
1137+
tags:
1138+
- ${DRONE_TAG##v}-linux-arm64
1139+
- ${DRONE_TAG:1:4}-linux-arm64
11311140
repo: gitea/gitea
11321141
build_args:
11331142
- GOPROXY=https://goproxy.io
@@ -1146,6 +1155,9 @@ steps:
11461155
dockerfile: Dockerfile.rootless
11471156
auto_tag: false
11481157
auto_tag_suffix: linux-arm64-rootless
1158+
tags:
1159+
- ${DRONE_TAG##v}-linux-arm64-rootless
1160+
- ${DRONE_TAG:1:4}-linux-arm64-rootless
11491161
repo: gitea/gitea
11501162
build_args:
11511163
- GOPROXY=https://goproxy.io

0 commit comments

Comments
 (0)