fix: cannot forward all viewer headers to the s3 origin #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Optimized Image Delivery Blog Post | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }} | |
aws-region: ${{ vars.AWS_REGION }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install npm dependencies | |
run: npm install | |
- name: CDK Deploy | |
env: | |
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT_ID }} | |
CDK_DEFAULT_REGION: ${{ vars.AWS_REGION }} | |
APEX_DOMAIN: ${{ secrets.APEX_DOMAIN }} | |
SUBDOMAIN: ${{ secrets.SUBDOMAIN }} | |
STACK_ID: ${{ github.ref_name }} | |
run: npx aws-cdk deploy --require-approval never |