public function __construct(Build $build, $cmd = null) { $config = ['Memory' => 256 * 1024 * 1204, 'Image' => $build->getImageName(), 'Env' => ['SYMFONY_ENV=prod']]; if (null !== $cmd) { $config['Cmd'] = $cmd; } parent::__construct($config); }
public function __construct(Build $build) { parent::__construct(['Memory' => 256 * 1024 * 1204, 'Env' => $this->getBuildEnv($build), 'Image' => $build->getImageName(), 'Cmd' => ['buildapp'], 'Volumes' => ['/.composer/cache' => []]]); }
public function __construct(Build $build) { parent::__construct(['Image' => $build->getImageName('yuhao'), 'Cmd' => ['yuhao.sh'], 'Env' => ['SSH_URL=' . $build->getProject()->getGitUrl(), 'REF=' . $build->getRef(), 'IS_PULL_REQUEST=' . ($build->isPullRequest() ? 1 : 0)]]); }