Loading deploy_code_to_server.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line deploy_to_server: stage: deploy script: - source $CI_PROJECT_DIR/.env.project - echo "$PRODUCTION_DEPLOY_KEY" > ~/.ssh/deploy.key - chmod 400 ~/.ssh/deploy.key - rsync -avz --numeric-ids --chown=33:33 -e "ssh -o StrictHostKeyChecking=no -i $HOME/.ssh/deploy.key " $CI_PROJECT_DIR/www/ root@$PROJECT_SERVER::www/$PROJECT_SITE/www/ only: refs: - master - beta changes: - www/**/* gitlab-ci-template.yml +3 −1 Original line number Diff line number Diff line include: - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/before_script.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/stages.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/jobs.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/minify_assets.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_assets_to_staging.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_code_to_server.yml' jobs.ymldeleted 100644 → 0 +0 −3 Original line number Diff line number Diff line include: - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/minify_assets.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_assets_to_staging.yml' Loading
deploy_code_to_server.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line deploy_to_server: stage: deploy script: - source $CI_PROJECT_DIR/.env.project - echo "$PRODUCTION_DEPLOY_KEY" > ~/.ssh/deploy.key - chmod 400 ~/.ssh/deploy.key - rsync -avz --numeric-ids --chown=33:33 -e "ssh -o StrictHostKeyChecking=no -i $HOME/.ssh/deploy.key " $CI_PROJECT_DIR/www/ root@$PROJECT_SERVER::www/$PROJECT_SITE/www/ only: refs: - master - beta changes: - www/**/*
gitlab-ci-template.yml +3 −1 Original line number Diff line number Diff line include: - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/before_script.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/stages.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/jobs.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/minify_assets.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_assets_to_staging.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_code_to_server.yml'
jobs.ymldeleted 100644 → 0 +0 −3 Original line number Diff line number Diff line include: - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/minify_assets.yml' - 'https://gitlab.cetera.ru/boilerplate/ci/raw/master/deploy_assets_to_staging.yml'