1
0
Fork 0

Update to support Build on PRs

This commit is contained in:
Joao M 2024-11-11 13:21:49 -06:00 committed by GitHub
parent 1a6853487e
commit 67e40dab43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,9 +77,13 @@ jobs:
result = []
tags.split("\n").forEach(function (item) {
short_tag = item.trim().split(":")[1];
result.push(short_tag);
if (short_tag != "latest") {
result.push(short_tag);
}
if (short_tag == "master" || short_tag == "main") {
result.push("latest");
}
})
return result.join(",");
result-encoding: string
@ -97,7 +101,7 @@ jobs:
RELEASE_VERSION_ARG="${{ steps.tags.outputs.result }}"
platforms: linux/amd64,linux/arm64
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 }}
outputs: