fix version handling in drone pipeline
This commit is contained in:
parent
b133b3c899
commit
0a382684fe
@ -21,8 +21,7 @@ local PipelineBuild(os='linux', arch='amd64') = {
|
||||
username: { from_secret: "docker_username" },
|
||||
password: { from_secret: "docker_password" },
|
||||
build_args: {
|
||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}",
|
||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}",
|
||||
KANBOARD_VERSION: "${DRONE_TAG%.*}",
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -38,8 +37,7 @@ local PipelineBuild(os='linux', arch='amd64') = {
|
||||
username: { from_secret: "docker_username" },
|
||||
password: { from_secret: "docker_password" },
|
||||
build_args: {
|
||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}",
|
||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}",
|
||||
KANBOARD_VERSION: "${DRONE_TAG%.*}",
|
||||
},
|
||||
},
|
||||
when: {
|
||||
|
@ -12,8 +12,7 @@ steps:
|
||||
image: plugins/docker:linux-amd64
|
||||
settings:
|
||||
build_args:
|
||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}"
|
||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}"
|
||||
KANBOARD_VERSION: "${DRONE_TAG%.*}"
|
||||
dockerfile: ./Dockerfile.linux.amd64
|
||||
dry_run: true
|
||||
password:
|
||||
@ -30,8 +29,7 @@ steps:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-amd64
|
||||
build_args:
|
||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}"
|
||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}"
|
||||
KANBOARD_VERSION: "${DRONE_TAG%.*}"
|
||||
dockerfile: ./Dockerfile.linux.amd64
|
||||
password:
|
||||
from_secret: docker_password
|
||||
@ -118,6 +116,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 0d583dcd9b7570914cd0e5b0f6c96acb7d4d40c4cdb37a9d8e1d2c0c0c24f855
|
||||
hmac: b6bf7aecbc8f3bee2e88539b0321d1bab96eff359ca336fb3ededb2e5d4e9cd7
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user