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" },
|
username: { from_secret: "docker_username" },
|
||||||
password: { from_secret: "docker_password" },
|
password: { from_secret: "docker_password" },
|
||||||
build_args: {
|
build_args: {
|
||||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}",
|
KANBOARD_VERSION: "${DRONE_TAG%.*}",
|
||||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -38,8 +37,7 @@ local PipelineBuild(os='linux', arch='amd64') = {
|
|||||||
username: { from_secret: "docker_username" },
|
username: { from_secret: "docker_username" },
|
||||||
password: { from_secret: "docker_password" },
|
password: { from_secret: "docker_password" },
|
||||||
build_args: {
|
build_args: {
|
||||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}",
|
KANBOARD_VERSION: "${DRONE_TAG%.*}",
|
||||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
when: {
|
when: {
|
||||||
|
@ -12,8 +12,7 @@ steps:
|
|||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
build_args:
|
build_args:
|
||||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}"
|
KANBOARD_VERSION: "${DRONE_TAG%.*}"
|
||||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}"
|
|
||||||
dockerfile: ./Dockerfile.linux.amd64
|
dockerfile: ./Dockerfile.linux.amd64
|
||||||
dry_run: true
|
dry_run: true
|
||||||
password:
|
password:
|
||||||
@ -30,8 +29,7 @@ steps:
|
|||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: linux-amd64
|
auto_tag_suffix: linux-amd64
|
||||||
build_args:
|
build_args:
|
||||||
KANBOARD_ORG_VERSION: "${DRONE_TAG##v}"
|
KANBOARD_VERSION: "${DRONE_TAG%.*}"
|
||||||
KANBOARD_VERSION: "${KANBOARD_ORG_VERSION%.*}"
|
|
||||||
dockerfile: ./Dockerfile.linux.amd64
|
dockerfile: ./Dockerfile.linux.amd64
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
@ -118,6 +116,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 0d583dcd9b7570914cd0e5b0f6c96acb7d4d40c4cdb37a9d8e1d2c0c0c24f855
|
hmac: b6bf7aecbc8f3bee2e88539b0321d1bab96eff359ca336fb3ededb2e5d4e9cd7
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Reference in New Issue
Block a user