Skip to content

Commit

Permalink
Added: Deployment Authorisation
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen committed Oct 29, 2024
1 parent ff20359 commit cf38b16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
AWS_REGION: '${{ secrets.AWS_REGION }}'
AWS_MAINNET: '${{ secrets.AWS_MAINNET }}'
steps:
- name: Authorised User only
run: |
if [[ ! " tcar121293 eedygreen MakMuftic akchainsafe mpetrun5 " =~ " ${{ github.actor }} " ]]; then
echo "You are not authorized to deploy to mainnet."
exit 1
fi
- name: checkout ecs repo
uses: actions/checkout@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy_mainnet_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
AWS_REGION: '${{ secrets.AWS_REGION }}'
AWS_MAINNET: '${{ secrets.AWS_MAINNET }}'
steps:
- name: Authorised User only
run: |
if [[ ! " tcar121293 eedygreen MakMuftic akchainsafe mpetrun5 " =~ " ${{ github.actor }} " ]]; then
echo "You are not authorized to deploy to mainnet."
exit 1
fi
- name: checkout ecs repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit cf38b16

Please sign in to comment.