-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67e0a1f
commit 4c72342
Showing
3 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
# Optionally, check that the GPG key is correctly configured for signing | ||
gpg --list-keys "[email protected]" | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -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 "[email protected]" | ||
# Optionally, check that the GPG key is correctly configured for signing | ||
gpg --list-keys "[email protected]" | ||
- name: Authenticate to Google Cloud | ||
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
# Optionally, check that the GPG key is correctly configured for signing | ||
gpg --list-keys "[email protected]" | ||
- name: Set Repo Name | ||
run: | | ||
repo_name=$(basename ${{ github.repository }}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
# Optionally, check that the GPG key is correctly configured for signing | ||
gpg --list-keys "[email protected]" | ||
- name: Set Repo Name | ||
run: | | ||
|