Skip to content

Commit

Permalink
Move dir for custom certs to own volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Argelbargel committed Mar 28, 2024
1 parent e7c8a18 commit cf8518c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.licenses=MIT
RUN apk --no-cache add ca-certificates \
&& rm -rf /var/cache/apk/*

VOLUME /etc/vault.d/
VOLUME /etc/vault.d/ /tmp/certs

ARG DIST_DIR
ARG TARGETOS
Expand Down
4 changes: 2 additions & 2 deletions init/entrypoint
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#! /bin/sh
set -eu

if [ -d /etc/vault.d/certs ]; then
if [ -d /tmp/certs ]; then
echo "Updating certificates"
cp /etc/vault.d/certs/* /usr/local/share/ca-certificates
cp /tmp/certs/* /usr/local/share/ca-certificates
update-ca-certificates
fi

Expand Down

0 comments on commit cf8518c

Please sign in to comment.