Bitbucket流水线的默认实例规格是1核CPU和3.75GB内存。您可以通过配置bitbucket-pipelines.yml文件来自定义实例规格。
以下是一个示例的bitbucket-pipelines.yml文件,其中配置了自定义的实例规格:
image: python:3.8
pipelines:
default:
- step:
name: Build and Test
script:
- echo "Running build and test"
size: 2x
branches:
master:
- step:
name: Deploy to Production
script:
- echo "Deploying to production"
size: 4x
在上面的示例中,size
字段用于指定实例的规格。可以选择的实例规格有:1x
、2x
、4x
、8x
和custom
.。
请注意,自定义实例规格可能会产生额外的费用,具体费用信息可以在Bitbucket官方文档中查找。
希望这个示例对您有帮助!