chore: update postStartCommand to retain GPG signing across container restarts

This commit is contained in:
Denys Vuika
2026-07-07 15:03:05 +00:00
parent 9b5ed36acd
commit 4b27f9978d
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -107,7 +107,8 @@ entry in the container's local keyring (to select the key) and the forwarded age
```
3. Rebuild the container. The `postStartCommand` auto-imports `.git/signing.pub`
and removes it.
on every container start, so signing survives restarts and rebuilds without
re-running the export script.
The helper auto-selects `gpg2`/`gpg` based on where your key is visible, which
avoids host setups where the two binaries use different keyrings.
+1 -1
View File
@@ -56,7 +56,7 @@
"postCreateCommand": "pnpm install --frozen-lockfile",
"postStartCommand": "if [ -f .git/signing.pub ]; then gpg --import .git/signing.pub && rm .git/signing.pub; fi",
"postStartCommand": "if [ -f .git/signing.pub ]; then gpg --import .git/signing.pub; fi",
"runArgs": ["--cap-drop=ALL", "--security-opt=no-new-privileges:true", "--pids-limit=512"]
}