From 402ae8ad7bc4220f9dff9481a327261f4e1f181a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Sat, 11 Jul 2020 23:25:25 +0200
Subject: [PATCH] Oprava tag based deploy

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ef321b..835c695 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ build:
     - npm install
     - npm run build
   after_script:
-    - TAG=`git describe --tags`
+    - TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
     - echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\", \"tag\":\"$TAG\" }" > request.json
     - "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
   artifacts:
-- 
GitLab