Attempt to propegate app version properly
All checks were successful
Publish Development Docker Image / Publish Development Docker Image (push) Successful in 8s
All checks were successful
Publish Development Docker Image / Publish Development Docker Image (push) Successful in 8s
This commit is contained in:
@ -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}
|
||||
|
@ -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>
|
||||
</>
|
||||
)
|
||||
|
Reference in New Issue
Block a user