-
Notifications
You must be signed in to change notification settings - Fork 10
Support stage yaml #13
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
base: master
Are you sure you want to change the base?
Conversation
|
依赖这个: laincloud/lain-sdk#8 |
|
@xtao 构建 meta 镜像的时候,现在应该还是会把 lain.yaml 拷到镜像里面而不是拷贝 lain.STAGE.yaml 吧 |
|
@panli889 改了 SDK 了 |
lain_cli/appversion.py
Outdated
| check_phase(phase) | ||
| yml = lain_yaml(ignore_prepare=True) | ||
| stage = get_phase_stage(phase) | ||
| yml = lain_yaml(ignore_prepare=True, stage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stage=stage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我改一下这个,有很多地方还没改全,这个 stage yaml 的 feature 准备合入主干么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得可以合啊,挺好的,正好有些app现在部署还要修改 lain.yaml 才行。。
lain_cli/build.py
Outdated
| @arg('--release', help="build from build image if it exists") | ||
| @arg('--push', help="tag release and meta image with version and push to registry") | ||
| def build(push=False, release=False): | ||
| @arg('phase', help="lain cluster phase id, can be added by lain config save") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--phase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@panli889 有个问题,就是 --phase 支持 lain build 和 lain build local 么?
还是说需要 lain build --phase local ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该是需要 lain build --phase local,你是想弄成哪种?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@panli889 期望不改变原来的行为,并且自然的支持。期望是 支持 lain build 和 lain build local,不期望加个 --phase。我刚才试了一下,--phase 需要输入 --phase,我研究一下怎么改..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没找到方法,就先 --phase 吧。。感觉有点搓。。
|
@xtao 使用方式是 |
|
@iwinux |
|
@xtao 这个应该已经 ok 了吧,我觉得可以 merge 了 |
|
@panli889 lain deploy stage 的时候,还有个 bug,我还没有修 |
|
lain deploy stage 的 bug 修复了吗? @xtao |
说明:
在 lain config 里面设置 stage 变量,lain build PHASE 的时候,会读取这个 stage 的值,载入对应的 lain.STAGE.yaml 的配置。同理: lain tag PHASE, lain push PHASE, lain deploy PHASE