Skip to content

Commit 72f83b1

Browse files
add secrets sources
1 parent e8ff46c commit 72f83b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
########
4+
## Check for /run/secrets and expose them as ENV variables
5+
for sec in $(ls /run/secrets/);do
6+
KEY=$(echo ${sec} |tr '[:lower:]' '[:upper:]' |sed -e 's/-/_/g')
7+
declare "$KEY=$(cat /run/secrets/${sec})"
8+
export $KEY
9+
done

0 commit comments

Comments
 (0)