Commit 52177bac authored by Ilya Rassadin's avatar Ilya Rassadin
Browse files

Inject user and group variables into job template

It turned out that user and group variables defined in group ci settings
 have higher precedence that dotenv reports. So we need to remove them
 in favour of job variables to make dotenv report work as expected.
parent 33b14bf8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
.deploy_code_to_server:
  extends: .before_deploy_code
  variables:
    user: www-data
    group: www-data
  script:
    - rsync --links --safe-links-avz --chown=$user:$group -e "ssh $SSH_OPTS" $CI_PROJECT_DIR/www/ $DEPLOY_HOST_PATH/www/
  dependencies:
@@ -25,6 +28,8 @@
.deploy_code_to_server_with_delete:
  extends: .before_deploy_code
  variables:
    user: www-data
    group: www-data
    RSYNC_PARAMS: '--delete --dry-run'
  script:
    - chmod 755 $CI_PROJECT_DIR