diff --git a/.github/workflows/_check-vars-and-secrets.yml b/.github/workflows/_check-vars-and-secrets.yml index 27001df4..fff4a36d 100644 --- a/.github/workflows/_check-vars-and-secrets.yml +++ b/.github/workflows/_check-vars-and-secrets.yml @@ -29,6 +29,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_GH_TOKEN }}' || \ -z '${{ secrets.REPO_ARGOCD_APPS_NAME }}' ]]; then diff --git a/.github/workflows/deploy-to-devnet.yml b/.github/workflows/deploy-to-devnet.yml index f3ef5038..8e9ebba5 100644 --- a/.github/workflows/deploy-to-devnet.yml +++ b/.github/workflows/deploy-to-devnet.yml @@ -72,11 +72,21 @@ jobs: cd ${aleph_path}/${apps_name}/faucet/overlays/devnet/${{ env.REGIONS_AWS }} kustomize edit set image "faucet-image-placeholder=${{ env.RELEASE_IMAGE }}" + - 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) + # yamllint enable rule:line-length + - name: GIT | Commit changes to argocd apps repository. uses: EndBug/add-and-commit@v9.1.3 with: author_name: ${{ secrets.AUTOCOMMIT_AUTHOR }} author_email: ${{ secrets.AUTOCOMMIT_EMAIL }} + commit: "-S" # yamllint disable-line rule:line-length message: "Updating devnet faucet docker image tag to: ${{ steps.get-image-name.outputs.image }}" add: "*.yaml" diff --git a/.github/workflows/deploy-to-testnet.yml b/.github/workflows/deploy-to-testnet.yml index bd21f939..2942be94 100644 --- a/.github/workflows/deploy-to-testnet.yml +++ b/.github/workflows/deploy-to-testnet.yml @@ -72,11 +72,21 @@ jobs: cd ${aleph_path}/${apps_name}/faucet/overlays/testnet/${{ env.REGIONS_AWS }} kustomize edit set image "faucet-image-placeholder=${{ env.RELEASE_IMAGE }}" + - 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) + # yamllint enble rule:line-length + - name: GIT | Commit changes to argocd apps repository. uses: EndBug/add-and-commit@v9.1.3 with: author_name: ${{ secrets.AUTOCOMMIT_AUTHOR }} author_email: ${{ secrets.AUTOCOMMIT_EMAIL }} + commit: -S # yamllint disable-line rule:line-length message: "Updating testnet faucet docker image tag to: ${{ steps.get-image-name.outputs.image }}" add: "*.yaml"