Skip to content

Commit

Permalink
per #2138, modify MET_FORCE_TAG value to include DockerHub repo name …
Browse files Browse the repository at this point in the history
…(excluding dtcenter/ prefix), e.g. met:11.1.0
  • Loading branch information
georgemccabe committed Jul 20, 2023
1 parent 5e601fa commit 51c6c53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/jobs/docker_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ elif [ "${EXTERNAL_TRIGGER}" == "true" ]; then
fi

# if MET_FORCE_TAG variable is set and not empty, use that version instead
# format is <REPO>:<TAG> where the repo used is dtcenter/<REPO> and
# the tag used is <TAG>, e.g. met:11.1.0 uses dtcenter/met:11.1.0
if [ ! -z "$MET_FORCE_TAG" ]; then
MET_TAG=$MET_FORCE_TAG
MET_DOCKER_REPO=met
force_info=(${MET_FORCE_TAG//:/ })
MET_DOCKER_REPO=${force_info[0]}
MET_TAG=${force_info[1]}
fi

echo Using MET_DOCKER_REPO=$MET_DOCKER_REPO
Expand Down

0 comments on commit 51c6c53

Please sign in to comment.