Skip to content

Commit 6e4b40d

Browse files
committed
fix(docker): set SOPS_AGE_KEY as ENV from ARG for build stage
ARG values are not automatically available as environment variables in RUN commands. Convert ARG to ENV so sops can access the key.
1 parent 779f2ba commit 6e4b40d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN bun run prepare
2222

2323
# Build with sops secrets
2424
ARG SOPS_AGE_KEY
25+
ENV SOPS_AGE_KEY=${SOPS_AGE_KEY}
2526
RUN sops exec-env secrets.prod.yaml 'bun run build'
2627

2728
FROM base AS executor

0 commit comments

Comments
 (0)