chore: publish templates to s3 in release workflow (#64)
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -32,4 +32,27 @@ jobs:
|
|||||||
- name: Build and Publish
|
- name: Build and Publish
|
||||||
run: |-
|
run: |-
|
||||||
cd scripts
|
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
|
||||||
Reference in New Issue
Block a user