Create a GitHub action to deploy the ingest inspector (#1130) #9
Workflow file for this run
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
name: Deploy Ingest Inspector | |
on: | |
push | |
# push: | |
# branches: | |
# - main | |
permissions: | |
id-token: write | |
jobs: | |
deploy_ingest_inspector: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: eu-west-1 | |
role-to-assume: ${{ secrets.DEPLOY_INGEST_INSPECTOR_GHA_ROLE_ARN }} | |
- name: Deploy Ingest Inspector backend | |
run: | | |
pip3 install boto3 docopt | |
python3 ./builds/publish_lambda_zip.py monitoring/ingest_inspector/backend_lambda \ | |
--bucket=wellcomecollection-storage-infra \ | |
--key=lambdas/monitoring/ingest_inspector_backend.zip | |
./builds/deploy_lambda_zip.sh monitoring/ingest_inspector_backend ingest_inspector_backend | |
- name: Deploy Ingest Inspector frontend | |
run: | | |
cd monitoring/ingest_inspector/frontend | |
sh deploy.sh |