We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb8de5a + 6b7a3bb commit 1649221Copy full SHA for 1649221
.github/workflows/lambda.yml
@@ -0,0 +1,24 @@
1
+name: Post-Deploy Lambda
2
+
3
+on:
4
+ deployment:
5
6
+jobs:
7
+ deploy-lambdas:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
12
+ - name: Show deployment info
13
+ run: |
14
+ echo "Deployment environment: $DEPLOYMENT_ENVIRONMENT"
15
16
+ - name: Run Lambda deploy
17
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
0 commit comments