Skip to content

Commit

Permalink
Revert Dockerfiles back to their original but update get_branch_name.…
Browse files Browse the repository at this point in the history
…sh to also strip off refs/tags/
  • Loading branch information
JohnHalleyGotway committed Feb 7, 2024
1 parent 3ed0526 commit 569be8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/jobs/get_branch_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else
fi

branch_name=${branch_name#"refs/heads/"}
branch_name=${branch_name#"refs/tags/"}

echo "branch_name=${branch_name}" >> $GITHUB_OUTPUT
echo branch_name: $branch_name
2 changes: 1 addition & 1 deletion internal/scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \
echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \
fi

ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g')
ENV MET_GIT_NAME ${SOURCE_BRANCH}
ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME}
ENV MET_GIT_URL https://github.com/dtcenter/MET
ENV MET_DEVELOPMENT true
Expand Down
2 changes: 1 addition & 1 deletion internal/scripts/docker/Dockerfile.copy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \
echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \
fi

ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g')
ENV MET_GIT_NAME ${SOURCE_BRANCH}
ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME}
ENV MET_GIT_URL https://github.com/dtcenter/MET
ENV MET_DEVELOPMENT true
Expand Down

0 comments on commit 569be8e

Please sign in to comment.