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
|
COPY --chown=node:node --from=web_build /home/node/app/web/dist /home/node/app/web/dist
|
||||||
|
|
||||||
|
ARG APP_VERSION
|
||||||
|
|
||||||
ENV NODE_ENV=production \
|
ENV NODE_ENV=production \
|
||||||
API_PROXY_TARGET=http://api:8911 \
|
API_PROXY_TARGET=http://api:8911 \
|
||||||
APP_VERSION=${APP_VERSION}
|
APP_VERSION=${APP_VERSION}
|
||||||
|
@ -65,23 +65,30 @@ const HomePage = () => (
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="fixed bottom-2 left-2 z-10">
|
<div className="fixed bottom-2 left-2 z-10">
|
||||||
|
{process.env.APP_VERSION !== undefined ? (
|
||||||
<div
|
<div
|
||||||
className="tooltip tooltip-right"
|
className="tooltip tooltip-right"
|
||||||
data-tip={process.env.APP_VERSION || ''}
|
data-tip={process.env.APP_VERSION}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href={
|
href={`https://git.altaiar.dev/ahmed/portfolio/releases/tag/${process.env.APP_VERSION}`}
|
||||||
process.env.APP_VERSION !== undefined
|
target="_blank"
|
||||||
? `https://git.altaiar.dev/ahmed/portfolio/releases/tag/${process.env.APP_VERSION}`
|
rel="noreferrer"
|
||||||
: 'https://git.altaiar.dev/ahmed/portfolio'
|
className="btn btn-square"
|
||||||
}
|
>
|
||||||
|
{getLogoComponent('github')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<a
|
||||||
|
href={'https://git.altaiar.dev/ahmed/portfolio'}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="btn btn-square"
|
className="btn btn-square"
|
||||||
>
|
>
|
||||||
{getLogoComponent('gitea')}
|
{getLogoComponent('gitea')}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user