Skip to content

Commit

Permalink
go-quai-signed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Mar 5, 2024
1 parent 67e0a1f commit 4c72342
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 39 deletions.
53 changes: 30 additions & 23 deletions .github/workflows/build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# - name: Check GPG Private Key
# run: |
# if [ -z "${{ secrets.GPG_PRIVATE_KEY }}" ]; then
# echo "GPG_PRIVATE_KEY is null"
# else
# echo "GPG_PRIVATE_KEY is set"
# fi
#
# - name: Import GPG Key
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
# run: |
# echo "$GPG_PRIVATE_KEY" | gpg --import
# git config --global user.signingkey $GPG_KEY_ID
# git config --global commit.gpgsign true
- name: Import GPG Key
if: ${{ inputs.update_version }}
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
git config --global user.signingkey $GPG_KEY_ID
git config --global commit.gpgsign true
# Configure Git with CI account details
git config --global user.name "ci-dominantstrategies"
git config --global user.email "ci@dominantstrategies.io"
# Optionally, check that the GPG key is correctly configured for signing
gpg --list-keys "ci@dominantstrategies.io"
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -228,13 +227,21 @@ jobs:
ref: ${{ inputs.branch }}
ssh-key: ${{ secrets.GH_PAT }}

# - name: Import GPG Key
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
# run: |
# echo "$GPG_PRIVATE_KEY" | gpg --import
# git config --global user.signingkey $GPG_KEY_ID
- name: Import GPG Key
if: ${{ inputs.update_version }}
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
git config --global user.signingkey $GPG_KEY_ID
git config --global commit.gpgsign true
# Configure Git with CI account details
git config --global user.name "ci-dominantstrategies"
git config --global user.email "ci@dominantstrategies.io"
# Optionally, check that the GPG key is correctly configured for signing
gpg --list-keys "ci@dominantstrategies.io"
- name: Authenticate to Google Cloud
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/cut-release-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,22 @@ jobs:
with:
ssh-key: ${{ secrets.GH_PAT }}

# - name: Import GPG Key
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
# run: |
# echo "$GPG_PRIVATE_KEY" | gpg --import
# git config --global user.signingkey $GPG_KEY_ID
# git config --global commit.gpgsign true
- name: Import GPG Key
if: ${{ inputs.update_version }}
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
git config --global user.signingkey $GPG_KEY_ID
git config --global commit.gpgsign true
# Configure Git with CI account details
git config --global user.name "ci-dominantstrategies"
git config --global user.email "ci@dominantstrategies.io"
# Optionally, check that the GPG key is correctly configured for signing
gpg --list-keys "ci@dominantstrategies.io"
- name: Set Repo Name
run: |
repo_name=$(basename ${{ github.repository }})
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/deploy-prod-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,21 @@ jobs:
with:
ssh-key: ${{ secrets.GH_PAT }}

# - name: Import GPG Key
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
# run: |
# echo "$GPG_PRIVATE_KEY" | gpg --import
# git config --global user.signingkey $GPG_KEY_ID
# git config --global commit.gpgsign true
- name: Import GPG Key
if: ${{ inputs.update_version }}
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
git config --global user.signingkey $GPG_KEY_ID
git config --global commit.gpgsign true
# Configure Git with CI account details
git config --global user.name "ci-dominantstrategies"
git config --global user.email "ci@dominantstrategies.io"
# Optionally, check that the GPG key is correctly configured for signing
gpg --list-keys "ci@dominantstrategies.io"
- name: Set Repo Name
run: |
Expand Down

0 comments on commit 4c72342

Please sign in to comment.