0

Drone events support "push", "pull_request", "tag", "deployment"

https://github.com/drone/drone-yaml-v1/blob/1c89a78f3ae4c8c70114203034a81fec59474bc2/main.go#L30

I have two questions: When tag and deployment will be trigger? who will trigger it?

Prakash Kumar
  • 2,554
  • 2
  • 18
  • 28

1 Answers1

1

tag events are triggered when you tag a commit (for instance, via the Releases page of your Github repo).

deployment events can be triggered via the Github Deployments API.

Both are ways for you to control when exactly a new version of your code is (build and) deployed.
For example, a common pattern is to always automatically deploy changes to your master branch to your dev environment and only deploy a tagged version to production (using the aforementioned Github releases or Deployments API).

Oliver
  • 11,857
  • 2
  • 36
  • 42