documentcloud-prod #7
This file contains hidden or 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: Post-Deploy Lambda | |
| on: | |
| deployment: | |
| jobs: | |
| deploy-lambdas: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Show deployment info | |
| run: | | |
| echo "Deployment environment: $DEPLOYMENT_ENVIRONMENT" | |
| - name: Run Lambda deploy | |
| run: | | |
| if [[ "$DEPLOYMENT_ENVIRONMENT" == "documentcloud-staging" ]]; then | |
| echo "Deploying staging lambda updates" | |
| bash config/aws/lambda/codeship_deploy_lambdas.sh staging-lambda --staging | |
| else | |
| echo "Deploying production lambda updates" | |
| bash config/aws/lambda/codeship_deploy_lambdas.sh prod-lambda | |
| fi |