generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try building and deploying ocr api in same workflow
- Loading branch information
Administrator
committed
Oct 17, 2024
1 parent
9ab22d9
commit 65f5836
Showing
3 changed files
with
83 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Deploy ReportVisions OCR-API | ||
description: Deploy the OCR-API to Azure App Service in the appropriate environment. | ||
inputs: | ||
deploy-env: | ||
description: The environment being deployed (e.g. "prod" or "test") | ||
required: true | ||
docker-tag: | ||
description: The path to the tar file containing the client code to deploy | ||
required: true | ||
docker-registry: | ||
description: The path to the tar file containing the client code to deploy | ||
required: true | ||
api-name: | ||
description: The path to the tar file containing the client code to deploy | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Lowercase the repo name | ||
shell: bash | ||
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
- name: Deploy to Azure Web App | ||
id: deploy-to-webapp | ||
uses: azure/webapps-deploy@v3 | ||
with: | ||
app-name: reportvision-ocr-${{ inputs.deploy-env }} | ||
images: '${{ inputs.docker-registry }}/${{ env.REPO}}-${{ inputs.api-name }}:${{ inputs.docker-tag }}' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters