Skip to content

Address section basic (#2133) #1355

Address section basic (#2133)

Address section basic (#2133) #1355

name: Build and Deploy modernization-api image
on:
push:
branches:
- main
paths:
- "apps/modernization-api/**"
- "apps/modernization-ui/**"
- "libs/accumulation/**"
- "!libs/testing/**"
jobs:
sonar_scan:
uses: ./.github/workflows/sonar.yaml
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
PASSED_GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
DATABASE_USER: ${{secrets.DATABASE_USER}}
DATABASE_PASSWORD: ${{secrets.DATABASE_PASSWORD}}
PARAMETER_SECRET: ${{secrets.PARAMETER_SECRET}}
TOKEN_SECRET: ${{secrets.TOKEN_SECRET}}
call-build-microservice-container-workflow:
name: Build Container
needs: sonar_scan
uses: CDCgov/NEDSS-Workflows/.github/workflows/Build-gradle-microservice-container.yaml@main
with:
microservice_name: modernization-api
dockerfile_relative_path: -f ./apps/modernization-api/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
call-update-helm:
name: Request INT1 deployment
needs: call-build-microservice-container-workflow
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: modernization-api
values_file_with_path: charts/modernization-api/values-int1.yaml
new_image_tag: ${{ needs.call-build-microservice-container-workflow.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}