From d5699a6215e78c6a28fde0d79c54ffd56997b18a Mon Sep 17 00:00:00 2001 From: matthew-robinson-ons Date: Tue, 30 Jul 2024 09:35:39 +0100 Subject: [PATCH] add singing token --- .github/workflows/main.yml | 18 ++++++++++++++++++ _infra/helm/secure-message/Chart.yaml | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae5fee93..98ccd033 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,10 +88,28 @@ jobs: run: | git fetch --tags echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - name: Import BOT GPG key + run: echo $BOT_GPG_KEY | base64 --decode | gpg --batch --import + env: + BOT_GPG_KEY: ${{ secrets.BOT_GPG_KEY }} + - name: Prepare gpg CLI signing step + run: | + rm -rf /tmp/gpg.sh + echo '#!/bin/bash' >> /tmp/gpg.sh + echo 'gpg --batch --pinentry-mode=loopback --passphrase $BOT_GPG_KEY_PASSPHRASE $@' >> /tmp/gpg.sh + chmod +x /tmp/gpg.sh + - name: Setup git + run: | + git config commit.gpgsign true + git config user.signingkey "${{ secrets.BOT_GPG_KEY_ID }}" + git config gpg.program /tmp/gpg.sh + git config user.name "${{ secrets.BOT_USERNAME }}" + git config user.email "${{ secrets.BOT_EMAIL }}" - name: update versions if: github.ref != 'refs/heads/main' env: GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} + BOT_GPG_KEY_PASSPHRASE: ${{ secrets.BOT_GPG_KEY_PASSPHRASE }} COMMIT_MSG: | auto patch increment shell: bash diff --git a/_infra/helm/secure-message/Chart.yaml b/_infra/helm/secure-message/Chart.yaml index e68d3a62..2940c7f7 100644 --- a/_infra/helm/secure-message/Chart.yaml +++ b/_infra/helm/secure-message/Chart.yaml @@ -14,8 +14,8 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 2.1.72 +version: 2.1.70 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 2.1.72 +appVersion: 2.1.70