Skip to content

Commit 6bedea6

Browse files
committed
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 <[email protected]>
1 parent 37fadaf commit 6bedea6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.drone.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ depends_on:
808808
trigger:
809809
ref:
810810
- refs/heads/main
811+
- "refs/heads/release/v*"
811812
event:
812813
exclude:
813814
- cron
@@ -823,7 +824,7 @@ steps:
823824
image: techknowlogick/drone-docker:latest
824825
settings:
825826
auto_tag: false
826-
tags: dev-linux-amd64
827+
tags: ${DRONE_COMMIT_REF##refs/heads/release/v}${${DRONE_COMMIT_REF##refs/heads/release/v}:+-}dev-linux-amd64
827828
repo: gitea/gitea
828829
build_args:
829830
- GOPROXY=https://goproxy.cn
@@ -841,7 +842,7 @@ steps:
841842
settings:
842843
dockerfile: Dockerfile.rootless
843844
auto_tag: false
844-
tags: dev-linux-amd64-rootless
845+
tags: ${DRONE_COMMIT_REF##refs/heads/release/v}${${DRONE_COMMIT_REF##refs/heads/release/v}:+-}dev-linux-amd64-rootless
845846
repo: gitea/gitea
846847
build_args:
847848
- GOPROXY=https://goproxy.cn
@@ -965,6 +966,7 @@ depends_on:
965966
trigger:
966967
ref:
967968
- refs/heads/main
969+
- "refs/heads/release/v*"
968970
event:
969971
exclude:
970972
- cron
@@ -980,7 +982,7 @@ steps:
980982
image: techknowlogick/drone-docker:latest
981983
settings:
982984
auto_tag: false
983-
tags: dev-linux-arm64
985+
tags: ${DRONE_COMMIT_REF##refs/heads/release/v}${${DRONE_COMMIT_REF##refs/heads/release/v}:+-}dev-linux-arm64
984986
repo: gitea/gitea
985987
build_args:
986988
- GOPROXY=https://goproxy.cn
@@ -998,7 +1000,7 @@ steps:
9981000
settings:
9991001
dockerfile: Dockerfile.rootless
10001002
auto_tag: false
1001-
tags: dev-linux-arm64-rootless
1003+
tags: ${DRONE_COMMIT_REF##refs/heads/release/v}${${DRONE_COMMIT_REF##refs/heads/release/v}:+-}dev-linux-arm64-rootless
10021004
repo: gitea/gitea
10031005
build_args:
10041006
- GOPROXY=https://goproxy.cn

0 commit comments

Comments
 (0)