File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- VARIABLES=" $( python3 /home/runuser/setenv.py) "
3+ if [[ -v " ${INPUT_VAULT_SECRET} " ]]; then
4+ IFS=' ,' read -ra SECRET_ENTRIES <<< " $INPUT_VAULT_SECRET"
5+ vault_entries=" "
6+ for ENTRY in " ${SECRET_ENTRIES[@]} " ; do
7+ echo " Processing vault secret entry: $ENTRY "
8+ vault_entry=" --vault-secret \" $ENTRY \" "
9+ vault_entries=" ${vault_entries} ${vault_entry} "
10+ done
11+ fi
12+
13+ if [[ -v " ${INPUT_GCP} " ]]; then
14+ IFS=' ,' read -ra GCP_ENTRIES <<< " $INPUT_GCP"
15+ gcp_entries=" "
16+ for ENTRY in " ${GCP_ENTRIES[@]} " ; do
17+ echo " Processing gcp project entry: $ENTRY "
18+ gcp_entry=" --gcp \" $ENTRY \" "
19+ gcp_entries=" ${gcp_entries}${gcp_entry} "
20+ done
21+ fi
22+
23+ VARIABLES=" $( python3 /home/runuser/setenv.py${vault_entries}${gcp_entries} ) "
424
525if [[ -z " $VARIABLES " ]]; then
626 echo " No variables set. Exiting."
You can’t perform that action at this time.
0 commit comments