Commit 12968101 authored by Ilya Rassadin's avatar Ilya Rassadin
Browse files

add deploy_code_to_server.yml job

parent 0dc1f7fe
Loading
Loading
Loading
Loading
+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/**/*
+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.yml

deleted100644 → 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'