post-receive: quiet gpg decryption

This commit is contained in:
Daniel Meiburg 2023-02-13 00:09:02 +01:00
parent a1de692e20
commit 82f941603b
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,11 @@ services:
DB_USER: gitea DB_USER: gitea
DB_PASSWD: ${DB_PW} DB_PASSWD: ${DB_PW}
GITEA__service__SHOW_REGISTRATION_BUTTON: false GITEA__service__SHOW_REGISTRATION_BUTTON: false
GITEA__service__ENABLE_OPENID_SIGNIN: false GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION: true
GITEA__openid__ENABLE_OPENID_SIGNIN: false
GITEA__openid__ENABLE_OPENID_SIGNUP: false
expose:
- 3000
expose: expose:
- 3000 - 3000
ports: ports:

View File

@ -21,7 +21,7 @@ for app in $changed; do
# remove old .env if no .env.gpg is supplied # remove old .env if no .env.gpg is supplied
[ -f .env ] && [ -f .env.gpg ] || rm .env [ -f .env ] && [ -f .env.gpg ] || rm .env
# decrypt .env.gpg # decrypt .env.gpg
[ -f .env.gpg ] && gpg -d .env.gpg > .env [ -f .env.gpg ] && gpg --quiet -d .env.gpg > .env
docker compose down | uniq docker compose down | uniq
docker compose up --quiet-pull -d | uniq docker compose up --quiet-pull -d | uniq