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

When push tag - trigger GitLab CI

See merge request !1383
This commit is contained in:
Dmitriy Zaporozhets 2015-01-11 17:08:49 +00:00
commit 31bcd04711

View file

@ -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