Skip to content
Snippets Groups Projects
Verified Commit 50afa61a authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

use .cluster.env instead of .env to prevent clashing

parent fc1013be
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ create-vps:
when: always
reports:
dotenv:
$CLUSTER_DIR/.env
$CLUSTER_DIR/.cluster.env
only:
changes:
- .gitlab-ci.yml
......
......@@ -171,6 +171,7 @@ IP_ADDRESS={ip_address}
HOSTNAME={hostname}
DOMAIN={domain}
LOCAL_FLUX={local_flux}
KUBECONFIG={secret_dir}/kube_config_cluster.yml
"""
with open(self.dotenv_file, 'w') as stream:
......@@ -181,6 +182,7 @@ LOCAL_FLUX={local_flux}
hostname=self.hostname,
domain=self.domain,
local_flux=self.local_flux
secret_dir=self.secret_dir
))
log.info("Created %s", self.dotenv_file)
......@@ -205,8 +207,8 @@ LOCAL_FLUX={local_flux}
@property
def dotenv_file(self):
"""Path to the .env file with relevant environment variables"""
return os.path.join(self.cluster_dir, '.env')
"""Path to the .cluster.env file with relevant environment variables"""
return os.path.join(self.cluster_dir, '.cluster.env')
@property
......
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