Fix trimPrefix within manifest

This commit is contained in:
Thomas Boerger 2019-02-19 11:39:07 +01:00
parent 46d9dc135d
commit e635243b54
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B

View File

@ -1,4 +1,4 @@
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}{{else}}latest{{/if}}
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
@ -7,30 +7,30 @@ tags:
{{/if}}
manifests:
-
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-amd64
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
-
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm64
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
architecture: arm64
os: linux
variant: v8
-
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
architecture: arm
os: linux
variant: v7
-
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows-1803
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803
platform:
architecture: amd64
os: windows
version: 1803
-
image: plugins/hugo:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows-1809
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809
platform:
architecture: amd64
os: windows