Fix manifest template helper

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-02-26 09:22:27 +08:00
parent 82b1568868
commit c406a8bc9b

View File

@ -1,4 +1,4 @@
image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix build.tag "v"}}{{else}}latest{{/if}} image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}} {{#if build.tags}}
tags: tags:
{{#each build.tags}} {{#each build.tags}}
@ -7,18 +7,18 @@ tags:
{{/if}} {{/if}}
manifests: manifests:
- -
image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-amd64 image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform: platform:
architecture: amd64 architecture: amd64
os: linux os: linux
- -
image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm64 image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform: platform:
architecture: arm64 architecture: arm64
os: linux os: linux
variant: v8 variant: v8
- -
image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm image: appleboy/drone-telegram:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform: platform:
architecture: arm architecture: arm
os: linux os: linux