Skip to content

Commit c1dec81

Browse files
committed
Limit Container Branch tags to 128 characters
This is the docker imposed tag limit. Signed-off-by: Trevor Bramwell <[email protected]>
1 parent 499a7fd commit c1dec81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ko-build-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Prepare container tag
3131
id: container_tag
3232
run: |
33-
export container_tag=$(echo ${{ github.head_ref }} | sed 's/[^_0-9a-zA-Z]/\-/g')
33+
export container_tag=$(echo ${{ github.head_ref }} | sed 's/[^_0-9a-zA-Z]/\-/g' | cut -c -127)
3434
echo "tag=$container_tag" >> $GITHUB_OUTPUT
3535
- name: Build project-api for PR
3636
run: |

0 commit comments

Comments
 (0)