function func_a( $arg1, $arg2, $arg3 = null ) {
return $arg1 + $arg2;
}
function func_arg( $a1, $a2 ) {
return $GLOBALS['summ'] + $a1 + $a2;
}
print func_a( 3, 5, func_arg( 7, 9 ) );
Так как сайт - публичный, то и репо вроде бы прятать смысла нет, но бывают, что в репо попадают конфиденциальные данные, и при таком раскладе они утекут.
image: php:7.2
definitions:
steps:
- step: &Deploy-step
name: Deploy to server
deployment: staging
script:
- apt-get update
- apt-get install -y openssh-client
- ssh username@yourserver.com -T -p 22 'cd ~/your_server_path && git pull'
pipelines:
branches:
master:
- step: *Deploy-step