Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: publish templates to s3 in release workflow #64

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,27 @@ jobs:
- name: Build and Publish
run: |-
cd scripts
bash push-to-ecr.sh
bash push-to-ecr.sh
cfn_templates:
runs-on: ubuntu-latest
permissions:
id-token: write
needs: ecr_images
env:
iam_role_to_assume: ${{ secrets.ROLE_ARN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure AWS Credentials
if: ${{ env.iam_role_to_assume != '' }}
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.iam_role_to_assume }}
aws-region: us-east-1
- name: Copy Deployment Templates to S3
env:
S3_BUCKET: ${{ secrets.ASSET_BUCKET }}
S3_PREFIX: bedrock-access-gateway/latest/
run: aws s3 sync deployment/ s3://$S3_BUCKET/$S3_PREFIX --acl public-read
Loading