title: Gitlab CI copy file with variables
body: <p>I have a <code>django</code> repository in <code>gitlab</code> service. And I use gitlab CI runner in my VDS. I want a copy some file during deploy process, for example <code>local_settings.py</code> and fill variables only on deploy, for example like this:</p>
  
  <pre><code># $CI_PROJECT_NAME/$CI_PROJECT_NAME/deploy_templates/local_settings.py.tpl
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'dbname',
          'USERNAME': '$DB_USERNAME',
          'PASSWORD': '$DB_PASSWORD',
      },
  }
  
  # .gitlab-ci.yml
  configure_project:
      script:
          - git clone $CI_BUILD_REPO
          - cp $CI_PROJECT_NAME/$CI_PROJECT_NAME/deploy_templates/local_settings.py.tpl $CI_PROJECT_NAME/$CI_PROJECT_NAME/local_settings.py
  </code></pre>
  
  <p>In my project I define <code>DB_USERNAME</code> and <code>DB_PASSWORD</code> secure variables. How I can to get file with values? I need something like <code>template</code> directive from <code>ansible</code></p>