Skip to content

feat: overhaul titiler-cmr api and backend #221

feat: overhaul titiler-cmr api and backend

feat: overhaul titiler-cmr api and backend #221

Workflow file for this run

name: CDK Deploy Dev Workflow 🚀
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to deploy'
required: true
default: 'develop'
pull_request:
types: [labeled, synchronize]
jobs:
deploy:
name: Deploy to dev 🚀
runs-on: ubuntu-latest
environment: dev
if: >
github.event_name != 'pull_request' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy-dev'))
steps:
- name: Determine branch to deploy
id: set_branch
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "branch=${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" == "pull_request" ]; then
echo "branch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_OUTPUT
else
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ steps.set_branch.outputs.branch }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.deploy_role_arn }}
role-session-name: test-deploy
aws-region: us-west-2
- name: Run titiler-cmr deployment
uses: "./.github/actions/cdk-deploy"
with:
dir: "./infrastructure/aws"
env_aws_secret_name: ""
env:
EARTHDATA_USERNAME: ${{ vars.earthdata_username }}
EARTHDATA_PASSWORD: ${{ secrets.earthdata_password }}
STAGE: ${{ vars.stage }}
TITILER_CMR_AWS_REQUEST_PAYER: ${{ vars.titiler_cmr_aws_request_payer }}
TITILER_CMR_ROLE_ARN: ${{ secrets.titiler_cmr_role_arn }}
TITILER_CMR_ROOT_PATH: ''
TITILER_CMR_S3_AUTH_STRATEGY: ${{ vars.titiler_cmr_s3_auth_strategy }}