We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f7806f commit a87dd77Copy full SHA for a87dd77
mq/server/buildspec.yml
@@ -17,7 +17,7 @@ phases:
17
commands:
18
- export DOCKER_LOGIN="$(aws ecr get-login --no-include-email --region us-east-1)"
19
- eval $DOCKER_LOGIN
20
- - export GIT_REF="$(git show-ref | grep $CODEBUILD_SOURCE_VERSION | grep -iv head)"
+ - export GIT_REF="$(git show-ref | grep $CODEBUILD_SOURCE_VERSION | grep -iv head | sort | tail -n 1)"
21
# GIT_REF_TYPE can be either "origin" (for branches) or "tags"
22
- export GIT_REF_TYPE="$(echo "$GIT_REF" | awk -F "/" '{print $(NF-1)}')"
23
# GIT_REF_NAME is either a branch or tag name
0 commit comments