Skip to content
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

Add CI support #7

Closed
f1yn opened this issue Apr 22, 2020 · 6 comments
Closed

Add CI support #7

f1yn opened this issue Apr 22, 2020 · 6 comments

Comments

@f1yn
Copy link
Member

f1yn commented Apr 22, 2020

It'd be beneficial to add the ability to integrate the cli into a CI workflow to automate the deployment of styles and components without the need to pull down and authenticate via login.

  • Support authenticating using a campaign key as an environment variable
  • Support selecting campaign automatically based on key
  • Remove need for user intervention if key is passed (assume that we're in an automated environment)
@tommaitland
Copy link
Contributor

tommaitland commented Apr 22, 2020

@flynnham We already have this:
https://github.com/raisely/cli#cicd-usage

Main issue is that components have different UUIDs between staging and production accounts – so we don't have a good dev -> staging -> prod workflow.

@f1yn
Copy link
Member Author

f1yn commented Apr 22, 2020

As a user facing library though, I don't think that's an issue we should be tasked with solving?

@tommaitland
Copy link
Contributor

CI support isn't super useful without it, since there's no support for branches. Staging -> Prod is one of the main holes in our developer experience right now.

@f1yn
Copy link
Member Author

f1yn commented Apr 22, 2020

In that case, we'd just need an additional check (for staging deploys) to remap uuids to their component name, which would be the same across staging. That's as easy as just requesting the component models for a given campaign.

@f1yn
Copy link
Member Author

f1yn commented Apr 22, 2020

So it'd take the staging component uuid instead

@tommaitland
Copy link
Contributor

I think it needs a bit more thought, because the styles are mapped to the campaign path too which will be different between staging and production campaigns. We need a way to link campaigns together probably for their different states.

@f1yn f1yn closed this as completed Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants