fix: set no-tty flag for gpg

This commit is contained in:
ThetaDev 2024-04-03 13:01:37 +02:00
parent fb5a6d49f9
commit 9b948ee6c5
Signed by: ThetaDev
GPG key ID: E319D3C5148D65B6

View file

@ -59,7 +59,7 @@ RUN set -eux; \
# User account setup
RUN set -eux; \
gpg --batch --keyserver keys.openpgp.org --recv-keys 86b02e72397343b766f005dd649ca4ebdc338394; \
echo -e "5\ny\n" | gpg --command-fd=0 --edit-key 86b02e72397343b766f005dd649ca4ebdc338394 trust; \
echo -e "5\ny\n" | gpg --no-tty --command-fd=0 --edit-key 86b02e72397343b766f005dd649ca4ebdc338394 trust; \
git config --global user.name "Forgejo Actions"; \
git config --global user.email "forgejo.actions@example.com"; \
git config --global init.defaultBranch main