Commit b46f1f57 authored by Pierre SMEYERS's avatar Pierre SMEYERS
Browse files

Merge branch '5-conflict_vault_and_scoped_variable' into 'master'

fix: conflict between vault and scoped vars

Closes #5

See merge request to-be-continuous/cloud-foundry!5
parents 366bc4de 85f1ed68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ stages:
  }

  function eval_all_secrets() {
    encoded_vars=$(env | grep -v '^scoped__' | awk -F '=' '/^[a-zA-Z0-9_]*=@(b64|hex|url)@/ {print $1}')
    encoded_vars=$(env | grep -Ev '(^|.*_ENV_)scoped__' | awk -F '=' '/^[a-zA-Z0-9_]*=@(b64|hex|url)@/ {print $1}')
    for var in $encoded_vars
    do
      eval_secret "$var"