Skip to content

Commit

Permalink
Cap image tag length at 128 chars (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrigoruk authored Jul 8, 2024
1 parent e40532b commit cd5c733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function createTag() {
local repositoryName="$2"
local imageTag="$3"
local newImageTag
newImageTag="$(echo -n "$4" | tr -s -c '[:alnum:][\_]' -)"
newImageTag="$(echo -n "$4" | tr -s -c '[:alnum:][\_]' - | cut -c 1-128)"

local manifest
local result
Expand Down

0 comments on commit cd5c733

Please sign in to comment.