Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
youPickItUp authored Dec 6, 2024
2 parents 07360da + 764e12f commit 658dd4f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/actions/deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ inputs:
image_tag:
description: Tag of the docker image to be deployed
required: true
autocommit-gpg-key-b64:
description: base64 encoded signing key
required: true
autocommit-gpg-key-fingerprint:
description: fingerprint of gpg key
required: true
autocommit-author:
description: Commit author
required: true
autocommit-email:
description: Commit author's mail
required: true
github_token:
required: true
environment:
Expand Down Expand Up @@ -41,13 +53,22 @@ runs:
cd aleph-apps/aleph-zero-dashboard/overlays/${{ inputs.environment }}/eu-central-1
kustomize edit set image "aleph-zero-dashboard-image-placeholder=${{ env.DEPLOY_IMAGE }}"
- name: Configure signing key
shell: bash
run: |
echo ${{ inputs.autocommit-gpg-key-b64 }} | base64 -d > key.gpg
gpg --import key.gpg
rm key.gpg
git config --global user.signingkey $(echo ${{ inputs.autocommit-gpg-key-fingerprint }} | tail -c 17)
- name: GIT | Commit changes to aleph-apps repository
uses: EndBug/add-and-commit@v5.1.0
uses: EndBug/add-and-commit@v9.1.4
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
with:
author_name: AlephZero Automation
author_email: [email protected]
author_name: ${{ inputs.autocommit-author }}
author_email: ${{ inputs.autocommit-email }}
commit: "-S"
message: 'Updating aleph-zero-dashboard ${{ inputs.environment }} docker image tag: ${{ inputs.image_tag }}'
add: '*.yaml'
cwd: 'aleph-apps'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-and-deploy-to-devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
with:
environment: devnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
autocommit-author: ${{ secrets.AUTOCOMMIT_AUTHOR }}
autocommit-email: ${{ secrets.AUTOCOMMIT_EMAIL }}
autocommit-gpg-key-b64: ${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }}
autocommit-gpg-key-fingerprint: ${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }}
image_tag: ${{ needs.build-and-push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-and-deploy-to-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
with:
environment: mainnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
autocommit-author: ${{ secrets.AUTOCOMMIT_AUTHOR }}
autocommit-email: ${{ secrets.AUTOCOMMIT_EMAIL }}
autocommit-gpg-key-b64: ${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }}
autocommit-gpg-key-fingerprint: ${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }}
image_tag: ${{ needs.build-and-push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-and-deploy-to-testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
with:
environment: testnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
autocommit-author: ${{ secrets.AUTOCOMMIT_AUTHOR }}
autocommit-email: ${{ secrets.AUTOCOMMIT_EMAIL }}
autocommit-gpg-key-b64: ${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }}
autocommit-gpg-key-fingerprint: ${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }}
image_tag: ${{ needs.build-and-push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}

Expand Down

0 comments on commit 658dd4f

Please sign in to comment.