v0.1.3: Add VERSION to website build
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
FROM alpine:latest AS version
|
||||
COPY VERSION.txt /tmp/version.txt
|
||||
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app/www
|
||||
@@ -8,6 +11,8 @@ COPY www/ ./
|
||||
RUN node build-blog.js
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=version /tmp/version.txt /tmp/version.txt
|
||||
ENV VERSION=$(cat /tmp/version.txt)
|
||||
|
||||
COPY --from=builder /app/www/ /usr/share/nginx/html/
|
||||
COPY docker-entrypoint.d/ /docker-entrypoint.d/
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<a href="docs/" class="btn btn-secondary btn-large">Read Docs</a>
|
||||
</div>
|
||||
<div class="hero-meta">
|
||||
<span>v0.1.1</span>
|
||||
<span>v${VERSION}</span>
|
||||
<span>•</span>
|
||||
<a href="${GIT_URL}" target="_blank">Git Repository</a>
|
||||
<span>•</span>
|
||||
|
||||
Reference in New Issue
Block a user