File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CDK Deploy Dev Workflow 🚀
2+
3+ permissions :
4+ id-token : write
5+ contents : read
6+
7+ on :
8+ push :
9+ branches :
10+ - feat/add-dev-deploy
11+
12+ jobs :
13+ define-environment :
14+ name : Set ✨ environment ✨
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Set the environment based on the branch
18+ id : define_environment
19+ run : |
20+ if [ "${{ github.ref }}" = "refs/heads/feat/add-dev-deploy" ]; then
21+ echo "env_name=staging" >> $GITHUB_OUTPUT
22+ fi
23+ - name : Print the environment
24+ run : echo "The environment is ${{ steps.define_environment.outputs.env_name }}"
25+
26+ outputs :
27+ env_name : ${{ steps.define_environment.outputs.env_name }}
28+
29+ deploy :
30+ name : Deploy to ${{ needs.define-environment.outputs.env_name }} 🚀
31+ runs-on : ubuntu-latest
32+ if : ${{ needs.define-environment.outputs.env_name }}
33+ needs : [define-environment]
34+ environment : ${{ needs.define-environment.outputs.env_name }}
35+ concurrency : ${{ needs.define-environment.outputs.env_name }}
36+
37+ steps :
38+ - name : Checkout
39+ uses : actions/checkout@v4
40+ with :
41+ ref : feat/add-dev-deploy
42+
43+ - name : Configure AWS credentials
44+ uses : aws-actions/configure-aws-credentials@v2
45+ with :
46+ role-to-assume : ${{ secrets.deploy_role_arn }}
47+ role-session-name : test-deploy
48+ aws-region : us-west-2
49+
50+ - name : Run titiler-cmr deployment
51+ uses : " ./.github/actions/cdk-deploy"
52+ with :
53+ dir : " ./infrastructure/aws"
54+ env_aws_secret_name : ${{ vars.ENV_AWS_SECRET_NAME }}
55+ script_path : " ./.github/workflows/generate_env_file.py"
56+
You can’t perform that action at this time.
0 commit comments