V8.13.384.2025.11.06
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m21s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-07 08:02:45 +01:00
parent 68a5765a2c
commit e2a3a66565
3 changed files with 9 additions and 7 deletions

View File

@@ -27,6 +27,8 @@ check_pkgs() {
apt-get update -qq > /dev/null 2>&1 apt-get update -qq > /dev/null 2>&1
apt-get install -y --no-install-recommends gnupg gpgv gpg-agent pinentry-curses pinentry-tty gnupg-utils
if ! command -v lsb_release >/dev/null 2>&1; then if ! command -v lsb_release >/dev/null 2>&1; then
apt-get install -y --no-install-recommends lsb-release apt-get install -y --no-install-recommends lsb-release
@@ -55,12 +57,6 @@ check_pkgs() {
fi fi
if ! command -v gpg >/dev/null 2>&1; then
apt-get install -y --no-install-recommends gnupg gpgv gpg-agent pinentry-curses gnupg-utils
fi
if [[ ! -f /usr/share/live/build/VERSION ]]; then if [[ ! -f /usr/share/live/build/VERSION ]]; then
apt-get install -y live-build apt-get install -y live-build

View File

@@ -44,6 +44,8 @@ init_gnupg() {
### Avoid collision with Gitea runner workflows. ### Avoid collision with Gitea runner workflows.
if [[ ! "${VAR_CDLB_INSIDE_RUNNER}" == "true" ]]; then if [[ ! "${VAR_CDLB_INSIDE_RUNNER}" == "true" ]]; then
printf "\e[93m++++ ++++ ++++ ++++ ++++ ++++ ++ VAR_CDLB_INSIDE_RUNNER: [%s] \e[0m\n" "${VAR_CDLB_INSIDE_RUNNER}"
declare -grx GNUPGHOME="/dev/shm/cdlb_${VAR_ISO8601}_gnupg" declare -grx GNUPGHOME="/dev/shm/cdlb_${VAR_ISO8601}_gnupg"
# shellcheck disable=SC2174 # shellcheck disable=SC2174
@@ -52,6 +54,10 @@ init_gnupg() {
echo 'allow-loopback-pinentry' >| "${GNUPGHOME}/gpg-agent.conf" echo 'allow-loopback-pinentry' >| "${GNUPGHOME}/gpg-agent.conf"
gpgconf --reload gpg-agent || true gpgconf --reload gpg-agent || true
else
printf "\e[93m++++ ++++ ++++ ++++ ++++ ++++ ++ VAR_CDLB_INSIDE_RUNNER: [%s] \e[0m\n" "${VAR_CDLB_INSIDE_RUNNER}"
fi fi
gpg --batch --import "${VAR_TMP_SECRET}/${VAR_SIGNING_KEY}" gpg --batch --import "${VAR_TMP_SECRET}/${VAR_SIGNING_KEY}"