Skip to content

Commit b03f76d

Browse files
Update .github/workflows/ci-e2e-openshift.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3620601 commit b03f76d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci-e2e-openshift.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ jobs:
101101
GIT_REF: ${{ github.event.pull_request.head.sha || github.sha }}
102102
run: |
103103
# Build image with git ref tag for this PR
104-
# Use first 8 chars of the git ref
105-
IMAGE_TAG="ref-${GIT_REF::8}"
104+
# Use first 8 chars of the git ref (POSIX-compliant)
105+
IMAGE_TAG="ref-$(printf '%s' "$GIT_REF" | cut -c1-8)"
106106
FULL_IMAGE="${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}"
107107
echo "Building image: $FULL_IMAGE"
108108
echo "Git ref: $GIT_REF"

0 commit comments

Comments
 (0)