yuse drone_tag as build arg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-07-11 16:31:27 +02:00
parent 18bc306c07
commit ada7a01f3c
2 changed files with 11 additions and 1 deletions

View File

@ -20,6 +20,9 @@ local PipelineBuild(os='linux', arch='amd64') = {
repo: ' xoxys/ttrss',
username: { from_secret: "docker_username" },
password: { from_secret: "docker_password" },
build_args: {
TTRSS_VERSION: "${DRONE_TAG##v}",
},
},
},
{
@ -33,6 +36,9 @@ local PipelineBuild(os='linux', arch='amd64') = {
repo: ' xoxys/ttrss',
username: { from_secret: "docker_username" },
password: { from_secret: "docker_password" },
build_args: {
TTRSS_VERSION: "${DRONE_TAG##v}",
},
},
when: {
ref: [

View File

@ -11,6 +11,8 @@ steps:
pull: always
image: plugins/docker:linux-amd64
settings:
build_args:
TTRSS_VERSION: "${DRONE_TAG##v}"
dockerfile: ./Dockerfile.linux.amd64
dry_run: true
password:
@ -26,6 +28,8 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
build_args:
TTRSS_VERSION: "${DRONE_TAG##v}"
dockerfile: ./Dockerfile.linux.amd64
password:
from_secret: docker_password
@ -111,6 +115,6 @@ depends_on:
---
kind: signature
hmac: bde1c3cd8c93a7590fdfb4f11e1d6d5c21d6d036e678fe3479ec4147c548c220
hmac: 070d95c434753c6b95c0a279d9c103f20e3b1b1975ba76b758eaf9bfc8a2e7a9
...