Add feed CDN DNS records #75
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: Deploy publicfeeds.net DNS | |
# Continuously deploys dns/publicfeeds.net-hosted_zone.yml | |
on: | |
push: | |
branches: [main] | |
paths: [dns/publicfeeds.net-hosted_zone.yml] | |
concurrency: | |
group: ${{ github.workflow }} | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::838846856186:role/PRX-GHA-AccessRole | |
role-session-name: gha-deploy-publicfeeds-dns | |
- name: Deploy CloudFormation Stack | |
working-directory: dns | |
run: | | |
aws cloudformation deploy \ | |
--no-fail-on-empty-changeset \ | |
--region us-east-1 \ | |
--stack-name hosted-zone-publicfeeds-net \ | |
--template-file publicfeeds.net-hosted_zone.yml \ | |
--role-arn arn:aws:iam::838846856186:role/PRX-GHA-ServiceRoleForCloudFormation |