chore: cleanup useless files
This commit is contained in:
53
.github/workflows/aws-genai-cicd-suite.yml
vendored
53
.github/workflows/aws-genai-cicd-suite.yml
vendored
@@ -1,53 +0,0 @@
|
||||
name: Intelligent Code Review
|
||||
# Enable manual trigger
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
# Avoid running the same workflow on the same branch concurrently
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
review:
|
||||
runs-on: ubuntu-latest
|
||||
environment: AWS_ROLE_TO_ASSUME
|
||||
|
||||
permissions:
|
||||
# read repository contents and write pull request comments
|
||||
id-token: write
|
||||
# allow github action bot to push new content into existing pull requests
|
||||
contents: write
|
||||
# contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies @actions/core and @actions/github
|
||||
run: |
|
||||
npm install @actions/core
|
||||
npm install @actions/github
|
||||
shell: bash
|
||||
|
||||
# check if required dependencies @actions/core and @actions/github are installed
|
||||
- name: Check if required dependencies are installed
|
||||
run: |
|
||||
npm list @actions/core
|
||||
npm list @actions/github
|
||||
shell: bash
|
||||
|
||||
- name: Debug GitHub Token and environment variables
|
||||
run: |
|
||||
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
echo "GitHub Token is set"
|
||||
else
|
||||
echo "GitHub Token is not set"
|
||||
fi
|
||||
echo "AWS_ROLE_TO_ASSUME: ${{ vars.AWS_ROLE_TO_ASSUME_VAR }}"
|
||||
58
.github/workflows/release.yml
vendored
58
.github/workflows/release.yml
vendored
@@ -1,58 +0,0 @@
|
||||
name: release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
reason:
|
||||
description: 'the reason for triggering this workflow'
|
||||
required: false
|
||||
default: 'manually publish the pre-built ecr images'
|
||||
jobs:
|
||||
ecr_images:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
env:
|
||||
iam_role_to_assume: ${{ secrets.ROLE_ARN }}
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- 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: Build and Publish
|
||||
run: |-
|
||||
cd scripts
|
||||
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