Skip to content

Commit 1649221

Browse files
Merge pull request #343 from MuckRock/lambda_update_action
Add workflow for lambda updates
2 parents cb8de5a + 6b7a3bb commit 1649221

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/lambda.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
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

0 commit comments

Comments
 (0)