Skip to content

Commit a87dd77

Browse files
committed
fixed buildspec
1 parent 2f7806f commit a87dd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mq/server/buildspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ phases:
1717
commands:
1818
- export DOCKER_LOGIN="$(aws ecr get-login --no-include-email --region us-east-1)"
1919
- eval $DOCKER_LOGIN
20-
- export GIT_REF="$(git show-ref | grep $CODEBUILD_SOURCE_VERSION | grep -iv head)"
20+
- export GIT_REF="$(git show-ref | grep $CODEBUILD_SOURCE_VERSION | grep -iv head | sort | tail -n 1)"
2121
# GIT_REF_TYPE can be either "origin" (for branches) or "tags"
2222
- export GIT_REF_TYPE="$(echo "$GIT_REF" | awk -F "/" '{print $(NF-1)}')"
2323
# GIT_REF_NAME is either a branch or tag name

0 commit comments

Comments
 (0)