Skip to content

Commit

Permalink
Merge pull request #1495 from CMSgov/devpre-buildspec-fix
Browse files Browse the repository at this point in the history
testing auto trigger
  • Loading branch information
Dinesh-Kantamneni authored Jan 30, 2025
2 parents 4a02f52 + 7e110e9 commit f8066dc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Checkov for Terraform
on:
pull_request:
branches:
- develop
-

env:
CHECKOV_OUTPUT_CODE_LINE_LIMIT: 255
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Codebuild trigger to deploy it to develop branch
name: Codebuild trigger to deploy it to develop environment
on:
push:
branches: [ develop ]
Expand All @@ -10,16 +10,19 @@ jobs:
id-token: write
contents: read
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Print branch name
run: |
echo "Current branch: ${GITHUB_REF##*/}"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::730335206644:role/delegatedadmin/developer/qppa-github-actions-role
aws-region: us-east-1

- name: Run CodeBuild
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: qppa-conversion-tool-dev
- name: Execute ssh command
run: |
aws codebuild start-build --project-name "qppa-conversion-tool-dev" --source-version "${GITHUB_REF##*/}"
28 changes: 28 additions & 0 deletions .github/workflows/codebuild-trigger-impl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Codebuild trigger to deploy it to impl environment
on:
push:
branches: [ 'release/**' ]

jobs:
build:
name: conversion tool codebuil job
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Print branch name
run: |
echo "Current branch: ${GITHUB_REF##*/}"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::730335206644:role/delegatedadmin/developer/qppa-github-actions-role
aws-region: us-east-1

- name: Execute ssh command
run: |
aws codebuild start-build --project-name "qppa-conversion-tool-impl" --source-version "${GITHUB_REF##*/}"

0 comments on commit f8066dc

Please sign in to comment.