feat: add DISABLE_SOPS

This commit is contained in:
Stefan Reimer 2021-10-13 13:23:31 +02:00
parent af4100c84a
commit e64621547e
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 0.10.2
- Optionally skip all `sops` operations when `DISABLE_SOPS` environment variable it set
## 0.10.1
- First official release supporting for Pulumi stacks
- Dockerfile and Alpine based public images provided incl. Pulumi binaries and podman for docker tasks

View File

@ -2,7 +2,7 @@ import logging
__author__ = "Stefan Reimer"
__email__ = "stefan@zero-downtimet.net"
__version__ = "0.10.1"
__version__ = "0.10.2"
# Set up logging to ``/dev/null`` like a library is supposed to.

View File

@ -225,7 +225,7 @@ def _sops_loader(path):
config_raw = f.read()
data = yaml.safe_load(config_raw)
if data and 'sops' in data:
if data and 'sops' in data and 'DISABLE_SOPS' not in os.environ:
try:
result = subprocess.run([
'sops',