feat: enhance versioning in workflows and application

- Updated build-release and canary-release workflows to include version arguments.
- Modified Dockerfile to set QS_VERSION environment variable.
- Added method to retrieve current QuickStack version in the service.
- Passed current version to QuickStackVersionInfo component in maintenance page.
- Improved README and CONTRIBUTING documentation for clarity.
This commit is contained in:
biersoeckli
2025-01-16 17:26:37 +00:00
parent 0caae031d7
commit 7f3c4e13a2
9 changed files with 117 additions and 8 deletions
+3
View File
@@ -1,5 +1,7 @@
FROM node:18-alpine AS base
ARG VERSION_ARG
RUN apk add --no-cache openssl
# Install dependencies only when needed
@@ -60,6 +62,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
USER nextjs
ENV PORT=3000
ENV QS_VERSION=$VERSION_ARG
# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output