Add decryption to pre-deploy, add .ansible-generated.env
This commit is contained in:
@@ -10,6 +10,7 @@ file_paths = ["stacks/test/docker-compose.yaml"]
|
||||
env_file_path = "stacks/test/.komodo-env"
|
||||
additional_env_files = ["stacks/test/.env"]
|
||||
pre_deploy.command = """
|
||||
docker run --rm -i -v /var/home/core:/root -v /var/docker:/var/docker ghcr.io/getsops/sops:v3.12.1 decrypt /var/docker/.supporting-services/komodo/repos/mrmeeb-labs/fcos-test-3/stacks/test/.env
|
||||
sed -i "s/HOSTNAME-CHANGEME/$(hostname)/g" stacks/test/.env # Sets the hostname dynamically according to the device it is run on
|
||||
"""
|
||||
linked_repo = "mrmeeb-labs/fcos-test-3"
|
||||
Reference in New Issue
Block a user