Skip to content

Commit cee0b75

Browse files
committed
Support '/' in branches
1 parent 53321e9 commit cee0b75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ jobs:
8080
id: get_version
8181
run: |
8282
pip -q install setuptools_scm
83-
# '+' is not supported in Docker Image tags
83+
# '+' and '/' is not supported in Docker Image tags
8484
scm_version=$(echo 'from setuptools_scm import get_version; print(get_version(version_scheme="release-branch-semver"))' | python)
8585
branch_version_suffix=${GITHUB_HEAD_REF:+-$GITHUB_HEAD_REF}
86-
echo "internetnl_version=$scm_version$branch_version_suffix" | tr '+' '-'| tee -a "$GITHUB_OUTPUT"
86+
echo "internetnl_version=$scm_version$branch_version_suffix" | tr '+' '-'| tr '/' '-' | tee -a "$GITHUB_OUTPUT"
8787
8888
# login to pull images from Github registry
8989
- name: Login to GitHub Container Registry

0 commit comments

Comments
 (0)