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

Is there any way to create release and promote the sequence on certain channel in single command? #161

Open
arahate opened this issue Oct 26, 2020 · 5 comments

Comments

@arahate
Copy link

arahate commented Oct 26, 2020

I am trying to automate create release and promote the release on certain channel.

The problem I am facing is there are 2 steps to do so.

replicated release create --yaml
This returns a sequence ID which in order to automate I need to pickup and pass to follwong command.

replicated release promote SEQUENCE_ID CHANNEL_ID

How do I get SEQUNCE_ID from step 1 to passed to step 2?

@areed
Copy link
Contributor

areed commented Oct 26, 2020

You can use the --promote flag with either the channel id or the channel name.

@abhijit-labelbox
Copy link

Thanks worked for me,

How can we specify a relative path of yaml file with --yaml switch ?

@abhijit-labelbox
Copy link

I tried following on windows
"docker run replicated/vendor-cli release create --promote staging-test --yaml-file ./apps/app/replicated.yaml --app appname --token tokenvalue"
but it returned error no such file or directory found.

@areed
Copy link
Contributor

areed commented Oct 29, 2020

Did you have --volume specified to mount your host path with your replicated yaml in it?

@arahate-labelbox
Copy link

Yes figured it out. volume did the trick Thanks.

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

4 participants