-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plan to support tag_push_event of gitlab? #1117
Comments
Yes, I started laying the groundwork in the next release for such a feature. I've added the ability to enable a repository to build tags (similar to pull requests and pushes): I've also updated the git plugin to fetch refs, which enables tags: I've also removed database restrictions that exist in 0.3 (current stable) that prevent this feature, specifically the unique indexes. In addition to the above changes, we'll need the ability to restrict publish and deploy steps to tags. We'll need to alter the Second, each plugin (GitHub, Bitbucket, etc) needs the ability to enable tag hooks. I believe this is already the case with GitHub, but we'll need to do the same with other systems. Third, each plugin needs to be able to correctly parse the hooks and convert to a build object. This will need to be implemented for each plugin as well. Last, we'll need to add a toggle to the user interface to enable / disable executing builds for tags. I believe it should be off by default, and something that can be manually enabled in the repository settings screen. This isn't an immediate priority for me since I'm still trying to get a working version of 0.4 release before adding new features, but those are the required steps if anyone wants to jump in and start enabling this feature :) |
thanks @bradrydzewski . i'll do something on it, as it seems immediate for me lol. |
help is much appreciated :) please know, however, that |
dupe of #468 |
Hi Brad, how far did #1130 go? The use case I have in mind may be a little simpler than a custom "tag recipe":
Is this possible today? Thanks! |
@os12 yes, in your repository settings in drone enable tags (via the toggle). Then in your |
Thanks, Brad! Could you clarify the following please:
|
Yes
No, this is not possible without a custom plugin Instead I would recommend using the new multiple build step feature. You could create multiple build steps, and make one of the steps conditional to only execute for tags. Furthermore, steps don't execute if preceding steps fail. You can read more about it here: Even though the step is in the build section, it will behave almost identically to a step in the publish or deploy section when proper conditions are applied.
No, there is no official shell plugin. This is because plugins run in their own isolated containers and as a result, there is no way for us to provide a generic shell image that would meet the requirements of most teams (OS, installed software, etc). You can always create and white-list your own shell plugin. This is an example of someone's custom shell plugin: https://github.com/crhym3/drone-plugin-bash |
As we wanna trigger some action by gitlab tag event, e.g. building&pushing docker image, tag_push_event supporting is required.
i've submit a PR in Bugagazavr/go-gitlab-client to support tag_push_event by go-gitlab-client. kzaitsev/go-gitlab-client#11
The text was updated successfully, but these errors were encountered: