0xSpaceShard / 0xSpaceShard/cairo-cli-docker
Build on side branches
- 主要语言
- Shell
- 星标
- 10
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently we only build on master, but for testing purposes, we could build on side branches, too. This is useful if we aren't just doing a simple cairo-lang update, but e.g. adding new commands.
It could be a simple build of just one image. Don't know how we would handle the environment variables (ARGs), ideally we wouldn't introduce duplication.
EDIT: the simplest approach would be to add a check in the shell script which checks the `CIRCLE_BRANCH` (an environment variable present in circleci) and only pushes the images if on `master`.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look at the existing CircleCI configuration and the shell script that builds Docker images. Identify where the build is triggered and where the CIRCLE_BRANCH environment variable can be used. Modify the script to conditionally push images only on the master branch, ensuring no duplication of ARGs. Test by creating a side branch and verifying the build runs without pushing.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, shell
- 领域
- build-system, ci-cd
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100