Skip to content

Commit

Permalink
Merge pull request #1481 from CMSgov/devpre-buildspec-fix
Browse files Browse the repository at this point in the history
devpre buildspec fix
  • Loading branch information
Dinesh-Kantamneni authored Jan 15, 2025
2 parents 111597a + 27aa38c commit 160daa4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/codebuild-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Codebuild trigger to deploy it to develop branch
on:
push:
branches: [ develop ]

jobs:
build:
name: conversion tool codebuil job
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- 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
2 changes: 1 addition & 1 deletion buildspec/build_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ phases:
- echo ${CODEBUILD_SRC_DIR}
- ECS_ENV="${ENV}"
- |
if [ "$ENV" = "prod" || "$ENV" = "devpre" ]; then
if [ "$ENV" = "prod" ] || [ "$ENV" = "devpre" ]; then
CLUSTER_NAME="qppa-${ENV}-api-ecs"
else
CLUSTER_NAME="${ENV}-api-ecs"
Expand Down

0 comments on commit 160daa4

Please sign in to comment.