Extra args to om ci
#55
shivaraj-bh
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@shivaraj-bh Your latest edit re: "Requirements" and the 4 "Proposed solution"s make all of this very clear, great! Regarding "Proposed solution 3 (vira)", I've opened the more general #59 - we can discuss configuration vs convention over at #59 (are there other use cases configuration will address?). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Internally @ Juspay, we use a flake input as a flag (flips between fast/slow-but-production-ready build), that is set to https://github.com/boolean-option/true by default and on specific production branches it is flipped using
--override-input
.I will be writing two proposals to support this in Vira:
om ci
(see next sections for the proposal)Requirement [1]
Vira should be able to run
om ci
with extra arguments:om ci run -- --override-input local github:boolean-option/false
Proposed solution (omnix)
Note
This solution may be skipped; as the proposed solutions for vira below supports arbitrary extra-arguments to
om ci
Change omnix to convert the above CLI to
om ci run .#production
i.e., encode all the CLI args to
om ci run
inom.yaml
itself.For the command from "Original requirement", the
om.yaml
will be:Proposed solution 1 (vira)
Add CLI args to Vira for specifying repo specific
om ci
settings:Example
Con
Multiple occurences of
[REPO_CLONE_URL]
-- once in--clone-urls
and optionally again in--om-ci-repo-clone-url
.Proposed solution 2 (vira)
Note: Based on
Proposed solution 1 (vira)
Merge
om ci
and repo settings to avoid specifying[REPO_CLONE_URL]
twice:--clone-urls is replaced with `many` --repo-clone-url [REPO_CLONE_URL] --repo-om-ci-extra-args [OM_REF]
Example
Con
Tightly couples
vira
withomnix
Proposed solution 3 (vira)
Support
--config-path
argument in Vira that encodes all the project-specific configurations.Example
Beta Was this translation helpful? Give feedback.
All reactions