Update build.yml
This commit is contained in:
parent
cc5fb83dab
commit
775b1c4cc7
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue