From a3d1be82ea4d88263694c058a35d0bcbb2e98497 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Sun, 31 Dec 2017 12:23:32 +0100 Subject: [PATCH] Add explanation about docker step --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8cfa2e0..752c52c 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,16 @@ 8765# gpg --edit-key > passwd > save - 8765# gpg --edit-key - 8765# gpg --armor --output sign-key-unprotected.asc --export-secret-key sign-in-ci@exapmle.com - host$ docker cp 8765:sign-key-unprotected.asc . + 8765# gpg --armor --output sign-key-nopw.asc --export-secret-key sign-in-ci@exapmle.com + host$ docker cp 8765:sign-key-nopw.asc . + ``` + + This step is necessary, because currently gnupg does not export secret + subkeys if they are not password protected. + 4. Add a protected secret CI variable `$GPG_KEY` and paste the contents of - `sign-key-unprotected.asc`. + `sign-key-nopw.asc`. 5. Setup [CI](.gitlab-ci.yml) -- GitLab