Skip to content

How to Limit what can trigger a build on Cirrus CI #1223

Answered by fkorotkov
confused-Techie asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @confused-Techie,

If we are talking only about the two use case from the edit (rolling on a cron invocation and release on a Github Release), then you can utilize CIRRUS_CRON environment variable which will contain name of the cron configuration (e.g. daily) and CIRRUS_TAG environment variable that will contain tag name. You can check this example of a configuration where we have a two tasks: one updates virtual machines monthly and the other builds the latest one on a GitHub release.

As for the initial question:

  • Cron builds are configurable in the repository settings.
  • Manual builds can be achieved either by trigger_type: manual or better yet via the required_pr_labels: initial-review.…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@confused-Techie
Comment options

Answer selected by confused-Techie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants