Attempt to propegate app version properly
All checks were successful
Publish Development Docker Image / Publish Development Docker Image (push) Successful in 8s

This commit is contained in:
2025-04-07 17:17:05 -04:00
parent 16bd44c599
commit 15bbc27238
2 changed files with 19 additions and 10 deletions

View File

@ -159,6 +159,8 @@ COPY --chown=node:node graphql.config.js .
COPY --chown=node:node --from=web_build /home/node/app/web/dist /home/node/app/web/dist
ARG APP_VERSION
ENV NODE_ENV=production \
API_PROXY_TARGET=http://api:8911 \
APP_VERSION=${APP_VERSION}

View File

@ -65,23 +65,30 @@ const HomePage = () => (
</div>
</div>
<div className="fixed bottom-2 left-2 z-10">
{process.env.APP_VERSION !== undefined ? (
<div
className="tooltip tooltip-right"
data-tip={process.env.APP_VERSION || ''}
data-tip={process.env.APP_VERSION}
>
<a
href={
process.env.APP_VERSION !== undefined
? `https://git.altaiar.dev/ahmed/portfolio/releases/tag/${process.env.APP_VERSION}`
: 'https://git.altaiar.dev/ahmed/portfolio'
}
href={`https://git.altaiar.dev/ahmed/portfolio/releases/tag/${process.env.APP_VERSION}`}
target="_blank"
rel="noreferrer"
className="btn btn-square"
>
{getLogoComponent('github')}
</a>
</div>
) : (
<a
href={'https://git.altaiar.dev/ahmed/portfolio'}
target="_blank"
rel="noreferrer"
className="btn btn-square"
>
{getLogoComponent('gitea')}
</a>
</div>
)}
</div>
</>
)