diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-11 09:18:14 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-11 09:18:14 +0300 |
commit | 2543af84f0925a1eea585675b2a334a5691a110b (patch) | |
tree | 37615abcf96dd772bc7cca5b3628e4c2499cee8f /app | |
parent | f891ababeb3f1ac90c65596bd5bae50fd56aa66b (diff) |
Execute GitLab CI on tag push
Diffstat (limited to 'app')
-rw-r--r-- | app/services/git_tag_push_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/git_tag_push_service.rb b/app/services/git_tag_push_service.rb index 62eaf9b4f51..bacd39bf1c4 100644 --- a/app/services/git_tag_push_service.rb +++ b/app/services/git_tag_push_service.rb @@ -8,6 +8,12 @@ class GitTagPushService create_push_event project.repository.expire_cache project.execute_hooks(@push_data.dup, :tag_push_hooks) + + if project.gitlab_ci? + project.gitlab_ci_service.async_execute(@push_data) + end + + true end private |