diff --git a/internal/scripts/docker/Dockerfile b/internal/scripts/docker/Dockerfile index c5daf58492..d2acbed3f6 100644 --- a/internal/scripts/docker/Dockerfile +++ b/internal/scripts/docker/Dockerfile @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \ echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \ fi -ENV MET_GIT_NAME ${SOURCE_BRANCH} +ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g') ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME} ENV MET_GIT_URL https://github.com/dtcenter/MET ENV MET_DEVELOPMENT true diff --git a/internal/scripts/docker/Dockerfile.copy b/internal/scripts/docker/Dockerfile.copy index 4d3d9476cd..59941a5f03 100644 --- a/internal/scripts/docker/Dockerfile.copy +++ b/internal/scripts/docker/Dockerfile.copy @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \ echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \ fi -ENV MET_GIT_NAME ${SOURCE_BRANCH} +ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g') ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME} ENV MET_GIT_URL https://github.com/dtcenter/MET ENV MET_DEVELOPMENT true