cirrus-ci-docs icon indicating copy to clipboard operation
cirrus-ci-docs copied to clipboard

Trigger runs from GitHub Deployments

Open simonbrandhof opened this issue 5 years ago • 4 comments

Hi,

Is there already a way to trigger a run when a GitHub Deployment is created? If not, do you consider this kind of feature for supporting CI/CD pipelines?

Thanks

simonbrandhof avatar Sep 25 '19 14:09 simonbrandhof

Definitely. I think in case of a deployment Cirrus can specify $CIRRUS_DEPLOYMENT_ID environment variable so tasks can be customizable and communicate back overall Build status as a status for the Deployment. 🤔

fkorotkov avatar Sep 25 '19 14:09 fkorotkov

Yes, that would be already a nice improvement.

Then having a dedicated pipeline, for instance declared in .cirrus-deployment.yml, would help to not impacting the configuration of standard build pipeline (avoid `only_if: $CIRRUS_DEPLOYMENT_ID == '' everywhere).

simonbrandhof avatar Sep 25 '19 17:09 simonbrandhof

Interesting idea about .cirrus-deployment.yml. Maybe cirrus can look into .cirrus folder and look for push.yml, pr.yml and deployment.yml before defaulting to .cirrus.yml in the root of the repository. 🤔

fkorotkov avatar Sep 25 '19 18:09 fkorotkov

Interesting idea about .cirrus-deployment.yml. Maybe cirrus can look into .cirrus folder and look for push.yml, pr.yml and deployment.yml before defaulting to .cirrus.yml in the root of the repository. 🤔

I think this would come with templating?

RDIL avatar Sep 25 '19 19:09 RDIL