File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 11name : Post-Deploy Lambda
22
33on :
4- deployment :
4+ deployment_status :
55
66jobs :
77 deploy-lambdas :
@@ -11,14 +11,20 @@ jobs:
1111
1212 - name : Show deployment info
1313 run : |
14- echo "Deployment environment: $DEPLOYMENT_ENVIRONMENT "
14+ echo "Deployment environment: ${{ github.event.deployment.environment }} "
1515
16- - name : Run Lambda deploy
16+ - name : Run Lambda production deploy
17+ if : >
18+ github.event.deployment.environment == 'documentcloud-prod' &&
19+ github.event.deployment_status.state == 'success'
1720 run : |
18- if [[ "$DEPLOYMENT_ENVIRONMENT" == "documentcloud-staging" ]]; then
19- echo "Deploying staging lambda updates"
20- bash config/aws/lambda/codeship_deploy_lambdas.sh staging-lambda --staging
21- else
22- echo "Deploying production lambda updates"
23- bash config/aws/lambda/codeship_deploy_lambdas.sh prod-lambda
24- fi
21+ echo "Deploying production lambda updates"
22+ bash config/aws/lambda/codeship_deploy_lambdas.sh prod-lambda
23+
24+ - name : Run Lambda staging deploy
25+ if : >
26+ github.event.deployment.environment == 'documentcloud-staging' &&
27+ github.event.deployment_status.state == 'success'
28+ run : |
29+ echo "Deploying staging lambda updates"
30+ bash config/aws/lambda/codeship_deploy_lambdas.sh staging-lambda --staging
You can’t perform that action at this time.
0 commit comments