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, ',') }}`
|
tags = `${{ join(steps.meta.outputs.tags, ',') }}`
|
||||||
result = []
|
result = []
|
||||||
tags.split("\n").forEach(function (item) {
|
tags.split("\n").forEach(function (item) {
|
||||||
echo item;
|
|
||||||
short_tag = item.trim().split(":")[1];
|
short_tag = item.trim().split(":")[1];
|
||||||
if (short_tag == "master" || short_tag == "main") {
|
if (short_tag == "master" || short_tag == "main") {
|
||||||
result.push("latest");
|
result.push("latest");
|
||||||
|
|
@ -86,7 +85,8 @@ jobs:
|
||||||
})
|
})
|
||||||
return result.join(",");
|
return result.join(",");
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
- name: Get result
|
|
||||||
|
- name: Get Tags
|
||||||
run: echo "${{ steps.tags.outputs.result }}"
|
run: echo "${{ steps.tags.outputs.result }}"
|
||||||
|
|
||||||
# Build and push Docker image with Buildx (don't push on PR)
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue