-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DCA and Schematic versions to footer of dashboard. (#564)
* WIP: Add DCA and Schematic versions to footer of dashboard. * Get schematic version via api call * Use schematic version from variable in global.R * Add version as an env variable to docker container * When building docker container, use the github ref as a build arg to note the version. * Change version variable to DCA_VERSION * Set DCA_VERSION env var to a variable in the global env * Show DCA version from the env var * Use GITHUB_REF_NAME env var to set version env var. * specify github context for github_ref_name var * Update github ref name to github.REF_NAME * For clarity, set build arg to DCA_VERSION instead of TAG. * Add DCA_VERSION env var to .Renviron so it is loaded as env var in shiny server. * Make DCA_VERSION from docker build-arg an env var in the container. Then in dca_startup.sh, add the env var to Renviron * Add error handling for schematic version api call
- Loading branch information
Showing
5 changed files
with
23 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM ghcr.io/afwillia/shiny-base:release-update-node | ||
LABEL maintainer="Anthony [email protected]" | ||
|
||
# add version tag as a build argument | ||
ARG DCA_VERSION | ||
|
||
ENV DCA_VERSION=$DCA_VERSION | ||
|
||
USER root | ||
RUN apt-get update | ||
|
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
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
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