Skip to content
Snippets Groups Projects
Commit 849cf8ee authored by Syrine Neifar's avatar Syrine Neifar
Browse files

Changes the password generation method for the ci pipeline

parent 8d4ca96a
No related branches found
No related tags found
1 merge request!296Resolve "Remove default passwords in values.yaml"
Pipeline #31543 passed with stages
in 11 minutes and 20 seconds
......@@ -67,7 +67,8 @@ install-helmrelease:
>> values-ci.yaml
- cat values-ci.yaml
- time kubectl delete --wait=true namespace "nc$CI_MERGE_REQUEST_IID" || true
- time helm --debug install --timeout 20m --create-namespace -n nc$CI_MERGE_REQUEST_IID --wait "nc$CI_MERGE_REQUEST_IID" . -f values-ci.yaml --set nextcloud.nextcloud.password=$(date | base64),nextcloud.mariadb.auth.password=$(date | base64),nextcloud.mariadb.auth.rootPassword=$(date | base64),redis.auth.password=$(date | base64),onlyoffice.jwtSecret=$(date | base64),rabbitmq.auth.password=$(date | base64),rabbitmq.auth.erlangCookie=$(date | base64),global.onlyofficeDb.password=$(date | base64)
- passgen() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c20; }
- time helm --debug install --timeout 20m --create-namespace -n nc$CI_MERGE_REQUEST_IID --wait "nc$CI_MERGE_REQUEST_IID" . -f values-ci.yaml --set nextcloud.nextcloud.password=$(passgen),nextcloud.mariadb.auth.password=$(passgen),nextcloud.mariadb.auth.rootPassword=$(passgen),redis.auth.password=$(passgen),onlyoffice.jwtSecret=$(passgen),rabbitmq.auth.password=$(passgen),rabbitmq.auth.erlangCookie=$(passgen),global.onlyofficeDb.password=$(passgen)
environment:
name: helmrelease/nc$CI_MERGE_REQUEST_IID
url: https://files-nc$CI_MERGE_REQUEST_IID.gitlab.stackspin.net
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment