Skip to content
Snippets Groups Projects
Commit dbdfe0b9 authored by hahn's avatar hahn
Browse files

short array syntax

parent 8a45de50
No related branches found
No related tags found
1 merge request!195534 add docker
...@@ -39,51 +39,47 @@ return [ ...@@ -39,51 +39,47 @@ return [
'ip'=> ['127.0.0.1'], 'ip'=> ['127.0.0.1'],
], ],
'projectgroups' => array( 'projectgroups' => [
'aae'=>'AAE', 'teamA'=>'Team A: Services',
'aum'=>'AUM', 'teamB'=>'Team B: Website',
'eosce'=>'EOSCE', ],
'iml'=>'IML Services and websites',
'measured'=>'Measured',
'medsurf'=>'Medsurf',
),
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// build settings // build settings
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'versionsToKeep' => 10, // for cleanup: keep n unused versions 'versionsToKeep' => 10, // for cleanup: keep n unused versions
'builtsToKeep' => 3, 'builtsToKeep' => 3,
'build' => array( 'build' => [
'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";', 'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";',
'hooks' => array( 'hooks' => [
'build-postclone' => 'hooks/onbuild-postclone', 'build-postclone' => 'hooks/onbuild-postclone',
'build-precompress' => 'hooks/onbuild', 'build-precompress' => 'hooks/onbuild',
), ],
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// rsync of archives // rsync of archives
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'mirrorPackages' => array( 'mirrorPackages' => [
/* /*
// (1) // (1)
// sync to a puppet master puppet to extract archive and generate templates // sync to a puppet master puppet to extract archive and generate templates
'puppet' => array( 'puppet' => [
'type' => 'rsync', 'type' => 'rsync',
'runas' => '', // www-data, // nur fuer commandline 'runas' => '', // www-data, // nur fuer commandline
'target' => 'copy-deployment@puppetmaster.example.com:/share/ciserver', 'target' => 'copy-deployment@puppetmaster.example.com:/share/ciserver',
), ],
// (2) // (2)
// sync to a software package server like https://os-docs.iml.unibe.ch/ci-pkg/ // sync to a software package server like https://os-docs.iml.unibe.ch/ci-pkg/
'package-server' => array( 'package-server' => [
'type' => 'rsync', 'type' => 'rsync',
'runas' => '', // www-data, // nur fuer commandline 'runas' => '', // www-data, // nur fuer commandline
'target' => 'copy-deployment@software.example.com:/var/www/data-ciserver', 'target' => 'copy-deployment@software.example.com:/var/www/data-ciserver',
), ],
*/ */
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// plugins // plugins
...@@ -116,20 +112,20 @@ return [ ...@@ -116,20 +112,20 @@ return [
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// notifications to messengers ... // notifications to messengers ...
'messenger'=>array( 'messenger'=>[
'slack'=>array( 'slack'=>[
'presets'=>array( 'presets'=>[
'https://hooks.slack.com/services/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'=>array( 'https://hooks.slack.com/services/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'=>[
'label'=>'#medsurf-heartbeat', 'label'=>'#medsurf-heartbeat',
'user'=>'[CI-WebGUI]', 'user'=>'[CI-WebGUI]',
), ],
'https://hooks.slack.com/services/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'=>array( 'https://hooks.slack.com/services/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'=>[
'label'=>'#msrd-analyzer-hrtbeat', 'label'=>'#msrd-analyzer-hrtbeat',
'user'=>'[CI-WebGUI]', 'user'=>'[CI-WebGUI]',
), ],
), ],
), ],
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
]; ];
\ No newline at end of file
...@@ -12,7 +12,7 @@ if (file_exists('config_custom.php')){ ...@@ -12,7 +12,7 @@ if (file_exists('config_custom.php')){
// generate some vars // generate some vars
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
$aConfig = array_merge($aConfig, array( $aConfig = array_merge($aConfig, [
'appRootDir' => dirname(dirname(__FILE__)), 'appRootDir' => dirname(dirname(__FILE__)),
'configDir' => dirname(__FILE__), 'configDir' => dirname(__FILE__),
'dataDir' => $aConfig['workDir'] . '/data', // to write data: ssh keys, projects, database 'dataDir' => $aConfig['workDir'] . '/data', // to write data: ssh keys, projects, database
...@@ -20,4 +20,4 @@ $aConfig = array_merge($aConfig, array( ...@@ -20,4 +20,4 @@ $aConfig = array_merge($aConfig, array(
'buildDefaultsDir' => $aConfig['workDir'] . '/defaults', 'buildDefaultsDir' => $aConfig['workDir'] . '/defaults',
'packageDir' => $aConfig['workDir'] . '/packages', 'packageDir' => $aConfig['workDir'] . '/packages',
'archiveDir' => $aConfig['workDir'] . '/packages/_files', 'archiveDir' => $aConfig['workDir'] . '/packages/_files',
)); ]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment