fix secret name
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Moritz 2023-10-04 18:48:06 +02:00
parent 972a2c2314
commit bb1237f9ad
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ def download(snapshot, path, volumes, secrets):
path = f[ 'path' ]
if SERVICE in path and f['type'] == 'file':
secret = dump(snapshot, path).decode()
secrets[path.removeprefix(SERVICE)] = secret
secret_name = path.removeprefix(f'{SECRET_PATH}{SERVICE}_')
secrets[secret_name] = secret
with open(filename, "w") as file:
json.dump(secrets, file)
print(filename)