Commit 37900bfa authored by Alessio Caiazza's avatar Alessio Caiazza

check for GPG_KEYID before signing

parent b02cee1e
Pipeline #25191401 passed with stages
in 24 minutes and 35 seconds
......@@ -215,7 +215,7 @@ package-deb-fpm:
packaging/root/=/ \
out/binaries/$(NAME)-linux-$(ARCH)=/usr/lib/gitlab-runner/gitlab-runner \
out/helper-images/=/usr/lib/gitlab-runner/helper-images/
@if [ ! -z "$(GPG_PASSPHRASE)" ]; then \
@if [ -n "$(GPG_KEYID)" ]; then \
dpkg-sig -g "--no-tty --digest-algo 'sha512' --passphrase '$(GPG_PASSPHRASE)'" \
-k $(GPG_KEYID) --sign builder "out/deb/$(PACKAGE_NAME)_$(PACKAGE_ARCH).deb" ;\
fi
......@@ -245,7 +245,7 @@ package-rpm-fpm:
packaging/root/=/ \
out/binaries/$(NAME)-linux-$(ARCH)=/usr/lib/gitlab-runner/gitlab-runner \
out/helper-images/=/usr/lib/gitlab-runner/helper-images/
@if [ ! -z "$(GPG_PASSPHRASE)" ] ; then \
@if [ -n "$(GPG_KEYID)" ] ; then \
echo "yes" | setsid rpm \
--define "_gpg_name $(GPG_KEYID)" \
--define "_signature gpg" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment