Commit 1c1becf
committed
fix(deploy): source .env.local in subshell before invoking sealed-env unseal
The sealed-env CLI doesn't auto-discover .env.local when invoked from
a script (vs interactive shell). Sourcing it inside a subshell keeps
the master keys out of the child docker compose process while still
providing them to the unseal call.
Also extract just the JWS string from sealed-env unseal output (the
command prints a banner + the token + a CI hint paragraph; we want
just the token bytes for the env var).1 parent e85484f commit 1c1becf
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
90 | 108 | | |
91 | 109 | | |
92 | | - | |
| 110 | + | |
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
| |||
0 commit comments