From 6135504e8e03de8318c4beb56b5e22b46ff0f233 Mon Sep 17 00:00:00 2001 From: nr0q Date: Sun, 22 Oct 2023 08:33:50 -0500 Subject: [PATCH] gpg is a complex thing --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1e5d23..0a71591 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -296,7 +296,8 @@ update_deb_repo: apt-get update && apt-get install google-cloud-cli -y curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash echo $GCP_SERVICE_KEY > gcloud-service-key.json - gpg --import .secure_files/debiankey.asc + # export GPG_TTY=$(tty) + gpg --pinentry-mode loopback --passphrase ${GPG_PASS} --import .secure_files/debiankey.asc gcloud auth activate-service-account --key-file gcloud-service-key.json gcloud config set project $GCLOUD_PROJECT_ID script: @@ -308,8 +309,8 @@ update_deb_repo: cd debian apt-ftparchive packages . > Packages apt-ftparchive release . > Release - gpg --clearsign -o InRelease Release - gpg -abs -o Release.gpg Release + gpg --passphrase ${GPG_PASS} --clearsign -o InRelease Release + gpg --passphrase ${GPG_PASS -abs -o Release.gpg Release if [[ ${CI_COMMIT_TAG} = test_* ]] || [[ ${CI_COMMIT_TAG} = lin_* ]] then gsutil ./* gs://debian.gridtracker.org/test/