Skip to content

Commit f632d83

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 Display qemy version for debug.
1 parent 140b8ac commit f632d83

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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 \

scripts/build/start_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ then
1616
${SUDO} apt-get install -y docker.io
1717
fi
1818
docker run --rm --privileged tonistiigi/binfmt:latest -install all
19+
docker run --privileged --rm tonistiigi/binfmt --version
1920
docker run --cidfile /tmp/docker_opensips.cid -d --restart=always \
2021
--platform linux/${DOCKR_PLATFORM} -v sources:`pwd` "${BUILD_OS}" \
2122
tail -f /dev/null

0 commit comments

Comments
 (0)