Open jonnyry opened 7 months ago
It will also be great to have a deployment time and commit hash and/or version tag in the footer.
And conditional CSS so that the Dev, test and prod deployments are visually different.
Proposed solution:
Var name | Description | Example | Mandatory | Default if not set | Where set/generated | Fixed in issue |
---|---|---|---|---|---|---|
UI_PRODUCT_NAME | TRE product name shown in UI | Azure TRE | no | (not shown) | config.yaml for local make deployments, GitHub Actions variable for GitHub Actions deploy |
(this issue) |
UI_FOOTER_TEXT | Footer text in bottom status panel of UI | Azure Trusted Research Environment | no | (not shown) | config.yaml for local make deployments, GitHub Actions variable for GitHub Actions deploy |
(this issue) |
UI_ENV_NAME | Text to shown on environment label in UI | DEV, STAGE, TEST | no | Azure TRE | config.yaml for local make deployments, GitHub Actions variable for GitHub Actions deploy |
(this issue) |
UI_ENV_LABEL_COLOUR | Background colour of label | #555555 | no | Azure Trusted Research Environment | config.yaml for local make deployments, GitHub Actions variable for GitHub Actions deploy |
(this issue) |
DEPLOY_TIME | (Last) deployment time | 2023-11-27 T13:24:30 | no | (not shown) | Generated in GitHub Action / Makefile on deploy | nwsde/AzureTRE#5 |
GITHUB_REF | GitHub REF - i.e. branch name OR tag | develop, v0.15.2 | no | (not shown) | Generated in GitHub Action / Makefile on deploy | nwsde/AzureTRE#5 |
GITHUB_HASH | Commit hash | 1e4683f | no | (not shown) | Generated in GitHub Action / Makefile on deploy | nwsde/AzureTRE#5 |
@vvcb could you review the above before I implement the changes?
@jonnyry , this looks comprehensive. 🚀 Happy for this to be implemented.
Splitting into three issues due to complexities around Git ref/hash & potential for merging back upstream:
Allow the following to be customisable via the use of environment/deployment variables:
Nb. these have already been customised in issue nwsde/AzureTRE#2, however this ticket extends the ability to customise them via variables.