Loading .deploy_code_to_server.yml +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ group: www-data RSYNC_PARAMS: '--delete --dry-run' script: - chmod 750 $CI_PROJECT_DIR - chmod $PROJECT_ROOT_PERMS $CI_PROJECT_DIR - 'which curl || (apt-get update -y && apt-get install curl -y)' - curl -O https://gitlab.cetera.ru/boilerplate/ci/raw/master/rsync-filter-std - *set_rsync_filter Loading before_script.yml +6 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,11 @@ before_script: echo "PROJECT_ROOT=$PROJECT_ROOT" echo "PROJECT_ROOT=$PROJECT_ROOT" >> cetera_build.env PROJECT_ROOT_PERMS_VAR="${CETERA_VAR_PREFIX}_PROJECT_ROOT_PERMS" PROJECT_ROOT_PERMS=${!PROJECT_ROOT_PERMS_VAR} PROJECT_ROOT_PERMS=${PROJECT_ROOT_PERMS:-"750"} echo "PROJECT_ROOT_PERMS=$PROJECT_ROOT_PERMS" >> cetera_build.env PROJECT_PORT_VAR="${CETERA_VAR_PREFIX}_PROJECT_PORT" PROJECT_PORT="${!PROJECT_PORT_VAR:-22}" export SSH_OPTS="-o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key -p $PROJECT_PORT" Loading Loading @@ -126,6 +131,7 @@ setup_environment_vars: before_script: - *set_ssh_keys - echo $DEPLOY_HOST_PATH - echo "set project root perms to $PROJECT_ROOT_PERMS" script: [] workflow: Loading Loading
.deploy_code_to_server.yml +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ group: www-data RSYNC_PARAMS: '--delete --dry-run' script: - chmod 750 $CI_PROJECT_DIR - chmod $PROJECT_ROOT_PERMS $CI_PROJECT_DIR - 'which curl || (apt-get update -y && apt-get install curl -y)' - curl -O https://gitlab.cetera.ru/boilerplate/ci/raw/master/rsync-filter-std - *set_rsync_filter Loading
before_script.yml +6 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,11 @@ before_script: echo "PROJECT_ROOT=$PROJECT_ROOT" echo "PROJECT_ROOT=$PROJECT_ROOT" >> cetera_build.env PROJECT_ROOT_PERMS_VAR="${CETERA_VAR_PREFIX}_PROJECT_ROOT_PERMS" PROJECT_ROOT_PERMS=${!PROJECT_ROOT_PERMS_VAR} PROJECT_ROOT_PERMS=${PROJECT_ROOT_PERMS:-"750"} echo "PROJECT_ROOT_PERMS=$PROJECT_ROOT_PERMS" >> cetera_build.env PROJECT_PORT_VAR="${CETERA_VAR_PREFIX}_PROJECT_PORT" PROJECT_PORT="${!PROJECT_PORT_VAR:-22}" export SSH_OPTS="-o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key -p $PROJECT_PORT" Loading Loading @@ -126,6 +131,7 @@ setup_environment_vars: before_script: - *set_ssh_keys - echo $DEPLOY_HOST_PATH - echo "set project root perms to $PROJECT_ROOT_PERMS" script: [] workflow: Loading