We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9be6f commit d40c7d4Copy full SHA for d40c7d4
1 file changed
.github/workflows/build.yml
@@ -209,13 +209,13 @@ jobs:
209
if [[ "${{ github.event.pull_request.head.repo.fork }}" == "true" ]]; then
210
SANITIZED_REPO_NAME=$(echo "$_GITHUB_PR_REPO_NAME" | sed "s/[^a-zA-Z0-9]/-/g") # Sanitize repo name to alphanumeric only
211
IMAGE_TAG=$SANITIZED_REPO_NAME-$IMAGE_TAG # Add repo name to the tag
212
- IMAGE_TAG=${IMAGE_TAG:0:128} # Limit to 128 characters, as that's the max length for Docker image tags
213
fi
214
215
if [[ "$IMAGE_TAG" == "main" ]]; then
216
IMAGE_TAG=dev
217
218
-
+
+ IMAGE_TAG=${IMAGE_TAG:0:128} # Limit image tags to 128 chars
219
echo "image_tag=$IMAGE_TAG" >> "$GITHUB_OUTPUT"
220
echo "### :mega: Docker Image Tag: $IMAGE_TAG" >> "$GITHUB_STEP_SUMMARY"
221
0 commit comments