Skip to content

Commit

Permalink
feat: Display Docker image tag in app Footer to help identify deploye…
Browse files Browse the repository at this point in the history
…d changes
  • Loading branch information
meissadia committed Nov 5, 2024
1 parent 535bda6 commit c898d03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ RUN npx pkg ./node_modules/@import-meta-env/cli/bin/import-meta-env.js \

COPY / /usr/src/app

# TODO: CREATE RELEASE TAG -- RUN echo "{ \"version\": \"${DOCKER_TAG}\" }" > ./src/common/constants/release.json
RUN echo "{ \"version\": \"${DOCKER_TAG}\" }" > ./src/constants/release.json

RUN yarn install
RUN yarn build

Expand Down
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import { useHeaderAuthLinks } from 'utils/useHeaderAuthLinks';
import ErrorFallback from 'ErrorFallback';
// eslint-disable-next-line import/no-extraneous-dependencies
import { ErrorBoundary } from 'react-error-boundary';
import release from './constants/release.json';

const FilingHome = lazy(async () => import('pages/Filing/FilingHome'));
const ProfileForm = lazy(async () => import('pages/ProfileForm'));
Expand Down Expand Up @@ -163,6 +164,9 @@ function BasicLayout(): Promise<void> | ReactElement {
<div>
{/* Part of fix to the white space below the footer problem */}
<FooterCfGovWrapper />
<div className='mx-auto mt-[-30px] max-w-[1200px] px-[30px] pb-5'>
{release.version}
</div>
</div>
</div>
);
Expand Down
3 changes: 3 additions & 0 deletions src/constants/release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "LocalHost"
}

0 comments on commit c898d03

Please sign in to comment.