Allow storing secret variables
In the .gitlab-ci.yml
file, user adds:
deploy:
stage: deploy
script: deploy
variables:
KEYS: PASSWORD1, PASSWORD2, ... # Comma separated. Spaces ignored
Modify deploy.py:main()
to
- Parse keys (comma / space separated)
- Get values from environment variables
- Update values in
<target>/variables.yaml
Modify deploy_gramex.yaml
to import $YAMLPATH/variables.yaml
before importing other apps