From 19dfac50aa8f611a05739798fc84d08ed0378170 Mon Sep 17 00:00:00 2001 From: Tore Martin Hagen Date: Fri, 27 Sep 2024 13:57:46 +0200 Subject: [PATCH] Added more info about GPC secretes --- secrets/gh-repo-gpg-passphrase.txt | 11 ++++++++++- secrets/gh-repo-gpg-private-key.txt | 19 ++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/secrets/gh-repo-gpg-passphrase.txt b/secrets/gh-repo-gpg-passphrase.txt index f7838260..dad1b376 100644 --- a/secrets/gh-repo-gpg-passphrase.txt +++ b/secrets/gh-repo-gpg-passphrase.txt @@ -4,6 +4,15 @@ secret-updated: secret-updated-by: secret-type: gh-repo is-secret: true -secret-usage: +secret-usage: Used to have a signe git commit for helm chart. +Used together with GPG_PRIVATE_KEY and +commiter in Create Pull Request in helm-chart.yml update-instructions: +Instructions here: https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites + +# macOS (not tested) +gpg --armor --export-secret-key $(git config user.email) | pbcopy + +# Ubuntu (assuming GNU base64) +gpg --armor --export-secret-key $(git config user.email) -w0 | xclip -sel clip diff --git a/secrets/gh-repo-gpg-private-key.txt b/secrets/gh-repo-gpg-private-key.txt index c8c45d7a..10647d39 100644 --- a/secrets/gh-repo-gpg-private-key.txt +++ b/secrets/gh-repo-gpg-private-key.txt @@ -4,6 +4,23 @@ secret-updated: secret-updated-by: secret-type: gh-repo is-secret: true -secret-usage: +secret-usage: Used to have a signe git commit for helm chart. +Used together with GPG_PRIVATE_KEY and +commiter in Create Pull Request in helm-chart.yml update-instructions: +Instructions taken from here, bu +https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites + +# macOS +gpg --armor --export-secret-key $(git config user.email) | pbcopy + +# Ubuntu +# Run this command and give a passphrase when asked. Rember the passphrase +gpg --armor --export-secret-key $(git config user.email) -w0 | xclip -sel clip + +Go to https://github.com/kosli-dev/cli/settings/secrets/actions +under +And set both the GPG_PRIVATE_KEY and GPG_PASSPHRASE + +OBS. Also update commiter in .github/workflows/helm-chart.yml