如何在gitlab-ci.yml中指定作业的内存? [英] How to specify in gitlab-ci.yml the memory for a job?

查看:121
本文介绍了如何在gitlab-ci.yml中指定作业的内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作需要比默认配置更多的内存才能编译大型项目. 我使用托管的共享运行程序.

I have a job that requires more memory than the default configuration to compile a large project. I use hosted shared runners.

是否可以在gitlab-ci.yml中指定每个作业所需的内存?

Is there a way to specify in gitlab-ci.yml the required memory per job ?

推荐答案

此功能现已在kubernetes赛跑者上可用:请参见 https:/中的..._overwrite_max_allowed /docs.gitlab.com/runner/executors/kubernetes.html

this feature now is available on kubernetes runners: see ..._overwrite_max_allowed in https://docs.gitlab.com/runner/executors/kubernetes.html

原始答案:

此功能当前不可用,开发人员正在 https中进行跟踪://gitlab.com/gitlab-org/gitlab-runner/issues/2902

This feature is not currently available, and the development is being tracker in https://gitlab.com/gitlab-org/gitlab-runner/issues/2902

这篇关于如何在gitlab-ci.yml中指定作业的内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆