Skip to content

Commit 31da7a0

Browse files
committed
CI/rtp.io: handle "/" in branch names (i.e feature/xyz) correctly
Fixes: https://github.com/OpenSIPS/opensips/actions/runs/22914875002/job/66498568285#step:8:201
1 parent 31b1e78 commit 31da7a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/.rtp.io.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
BUILD_MATRIX="`echo ${PLATFORMS} | tr ',' '\n' | jq -R . | jq -s . | tr '\n' ' '`"
4949
GIT_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
5050
GIT_BRANCH="${GIT_BRANCH#refs/tags/}"
51-
BUILD_IMAGE="${{ inputs.ghcr-repo }}:rtp.io-${{ inputs.rtpp-tag }}-${GIT_BRANCH}"
51+
BI_BRANCH="`echo ${GIT_BRANCH} | sed 's~/~_~g'`"
52+
BUILD_IMAGE="${{ inputs.ghcr-repo }}:rtp.io-${{ inputs.rtpp-tag }}-${BI_BRANCH}"
5253
echo "Platforms: ${PLATFORMS}"
5354
for _p in `echo ${PLATFORMS} | tr ',' '\n'`; \
5455
do \

0 commit comments

Comments
 (0)