Skip to content

Commit a69ad4b

Browse files
committed
update workflow
1 parent f402097 commit a69ad4b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/tag.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ jobs:
134134
JSON='${{ steps.meta.outputs.json }}'
135135
MODIFIED_JSON=$(echo "$JSON" | jq '
136136
.tags |= map(
137-
sub(":v"; ":") # Strip the 'v'
138-
| select(test(":latest") | not)
139-
# Add guard to only modify tags with a version
140-
| if test(":(.+)") then sub(":(.+)"; ":\(.captures[0])-slim") else . end
137+
sub(":v"; ":") # Strip the 'v'
138+
| select(test(":latest") | not) # Remove the "latest" tag
139+
| . + "-slim" # Append "-slim" to the versioned tag
141140
) |
142141
if any(.tags[]; test("beta")) then
143142
.tags += [

0 commit comments

Comments
 (0)