Skip to content

Commit

Permalink
ci/docker-build: fix pick_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Aug 25, 2019
1 parent 8887080 commit b54821a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ IMAGE_NAME=fsouza/fake-gcs-server

function pick_tag() {
tag=latest
if [ "${GITHUB_HEAD_REF##refs/tags/}" != "${GITHUB_HEAD_REF}" ]; then
tag=${GITHUB_HEAD_REF##refs/tags}
if [ "${GITHUB_REF##refs/tags/}" != "${GITHUB_REF}" ]; then
tag=${GITHUB_REF##refs/tags}
fi
echo $tag
}
Expand Down

0 comments on commit b54821a

Please sign in to comment.