Add decryption to pre-deploy, add .ansible-generated.env

This commit is contained in:
2026-03-28 11:09:32 +00:00
parent ec028871c9
commit 1a68c32d54

View File

@@ -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"