Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Display Docker image tag in app Footer to help identify deployed changes #1045

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}