Commit 31bcd047 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'gitlab-ci-on-tag' into 'master'

When push tag - trigger GitLab CI

See merge request !1383
parents f31a9610 2543af84
...@@ -8,6 +8,12 @@ class GitTagPushService ...@@ -8,6 +8,12 @@ class GitTagPushService
create_push_event create_push_event
project.repository.expire_cache project.repository.expire_cache
project.execute_hooks(@push_data.dup, :tag_push_hooks) project.execute_hooks(@push_data.dup, :tag_push_hooks)
if project.gitlab_ci?
project.gitlab_ci_service.async_execute(@push_data)
end
true
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment