Update to support Build on PRs
This commit is contained in:
parent
1a6853487e
commit
67e40dab43
1 changed files with 5 additions and 1 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -77,9 +77,13 @@ jobs:
|
||||||
result = []
|
result = []
|
||||||
tags.split("\n").forEach(function (item) {
|
tags.split("\n").forEach(function (item) {
|
||||||
short_tag = item.trim().split(":")[1];
|
short_tag = item.trim().split(":")[1];
|
||||||
|
result.push(short_tag);
|
||||||
if (short_tag != "latest") {
|
if (short_tag != "latest") {
|
||||||
result.push(short_tag);
|
result.push(short_tag);
|
||||||
}
|
}
|
||||||
|
if (short_tag == "master" || short_tag == "main") {
|
||||||
|
result.push("latest");
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return result.join(",");
|
return result.join(",");
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
|
|
@ -97,7 +101,7 @@ jobs:
|
||||||
RELEASE_VERSION_ARG="${{ steps.tags.outputs.result }}"
|
RELEASE_VERSION_ARG="${{ steps.tags.outputs.result }}"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }}
|
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.tags.outputs.result }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue