Skip to content

Commit fc0e83f

Browse files
authored
fix: Pass GPG key ids as separate arguments when exporting. (#426)
This makes sure all keys are exported to a keyring archive, as opposed to only the first key.
1 parent 355384f commit fc0e83f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.buildkit.plus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN --mount=type=secret,id=nginx-crt,dst=nginx-repo.crt \
5656
done; \
5757
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \
5858
done; \
59-
gpg1 --export "$NGINX_GPGKEYS" > "$NGINX_GPGKEY_PATH" ; \
59+
gpg1 --export $NGINX_GPGKEYS > "$NGINX_GPGKEY_PATH" ; \
6060
rm -rf "$GNUPGHOME"; \
6161
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \
6262
# Install the latest release of NGINX Plus and/or NGINX Plus modules (written and maintained by F5)

Dockerfile.plus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN set -x \
5656
done; \
5757
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \
5858
done; \
59-
gpg1 --export "$NGINX_GPGKEYS" > "$NGINX_GPGKEY_PATH" ; \
59+
gpg1 --export $NGINX_GPGKEYS > "$NGINX_GPGKEY_PATH" ; \
6060
rm -rf "$GNUPGHOME"; \
6161
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \
6262
# Install the latest release of NGINX Plus and/or NGINX Plus modules (written and maintained by F5)

0 commit comments

Comments
 (0)