1
0
Fork 0

Update build.yml

This commit is contained in:
Joao M 2024-11-11 13:29:39 -06:00 committed by GitHub
parent cc5fb83dab
commit 775b1c4cc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,6 @@ jobs:
tags = `${{ join(steps.meta.outputs.tags, ',') }}`
result = []
tags.split("\n").forEach(function (item) {
echo item;
short_tag = item.trim().split(":")[1];
if (short_tag == "master" || short_tag == "main") {
result.push("latest");
@ -86,7 +85,8 @@ jobs:
})
return result.join(",");
result-encoding: string
- name: Get result
- name: Get Tags
run: echo "${{ steps.tags.outputs.result }}"
# Build and push Docker image with Buildx (don't push on PR)