编译构建 CODEARTS BUILD-使用yaml配置PHP构建

时间:2023-12-20 17:27:55

使用yaml配置PHP构建

version: 2.0 # 必须是2.0
steps:
  BUILD:
	- php:
       inputs:
          command: |-
			composer config -g secure-http false
			composer config -g repo.packagist composer http://mirrors.tools.huawei.com/php/
			composer install
			tar -zcvf php-composer.tgz *

参数名

参数类型

描述

是否必填

默认值

command

string

执行命令。

support.huaweicloud.com/usermanual-codeci/codeci_ug_1072.html