Skip to content

Commit

Permalink
INFRA-92: add signing commits to workflow (#1863)
Browse files Browse the repository at this point in the history
# Description

Added signing commit mechanism to node image update workflow

## Type of change

Please delete options that are not relevant.

- Workflow fix (non-breaking change which fixes an issue)

# Checklist:

<!-- delete when not applicable to your PR -->

- I have made neccessary updates to the workflows
  • Loading branch information
CezaryKierzyk authored Dec 5, 2024
1 parent 9ac1a96 commit a338fee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/_check-vars-and-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
-z '${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }}' || \
-z '${{ secrets.AUTOCOMMIT_AUTHOR }}' || \
-z '${{ secrets.AUTOCOMMIT_EMAIL }}' || \
-z '${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }}' || \
-z '${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }}' || \
-z '${{ secrets.CI_DEVNET_S3BUCKET_NAME }}' || \
-z '${{ secrets.CI_MAINNET_S3BUCKET_NAME }}' || \
-z '${{ secrets.CI_GH_USER }}' || \
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/_update-node-image-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ jobs:
"aleph-node-validator-image-placeholder=${{ env.DEPLOY_IMAGE }}"
done
- name: Configure signing key
# yamllint disable rule:line-length
run: |
echo ${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }} | base64 -d > key.gpg
gpg --import key.gpg
rm key.gpg
git config --global user.signingkey $(echo ${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }} | tail -c 17)
- name: GIT | Commit changes to argocd apps repository.
uses: EndBug/[email protected]
env:
Expand All @@ -94,4 +102,5 @@ jobs:
author_email: ${{ secrets.AUTOCOMMIT_EMAIL }}
message: "Update ${{ inputs.env }} aleph-node tag ${{ env.TAG }}"
add: "*.yaml"
commit: -S
cwd: ${{ secrets.REPO_ARGOCD_APPS_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/on-pull-request-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: Cardinal-Cryptography/github-actions/check-pr-title@v7
with:
pr-title: ${{ github.event.pull_request.title }}
regexp: '(A0|L1|CW)-[0-9]+'
regexp: '(A0|L1|CW|INFRA)-[0-9]+'

code-formatting:
name: Check code formatting
Expand Down

0 comments on commit a338fee

Please sign in to comment.