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.
- Loading branch information
Administrator
committed
Oct 17, 2024
1 parent
9a6cbcc
commit ddcde31
Showing
4 changed files
with
87 additions
and
41 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Deploy ReportVisions Frontend Service | ||
description: Deploy the frontend from a tarball to Azure Blob storage in the appropriate environment. | ||
inputs: | ||
deploy-env: | ||
description: The environment being deployed (e.g. "prod" or "test") | ||
required: true | ||
frontend-tarball: | ||
description: The path to the tar file containing the client code to deploy | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Unpack frontend | ||
shell: bash | ||
run: | | ||
mkdir frontend-build; | ||
tar -C frontend-deploy -zxvf ${{ inputs.frontend-tarball }} | ||
- name: Upload frontend to the environments Azure Blob Storage | ||
shell: bash | ||
run: | | ||
az storage blob upload-batch -s frontend-deploy/ -d '$web' \ | ||
--account-name reportvisionfrontend${{ inputs.deploy_env }} \ | ||
--overwrite | ||
- name: Logout out of Azure | ||
shell: bash | ||
run: | | ||
az logout |
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