Compare commits
2 Commits
25680a19b6
...
afbdb74516
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afbdb74516 | ||
|
|
9372264174 |
@@ -24,12 +24,12 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Extract version: use build arg if provided, otherwise get from git, fallback to package.json
|
||||
# Only use tags that are reachable from the current commit to ensure version matches the code
|
||||
RUN if [ -n "$APP_VERSION" ]; then \
|
||||
echo "$APP_VERSION" > /tmp/version.txt; \
|
||||
else \
|
||||
(git describe --tags --exact-match 2>/dev/null || \
|
||||
git describe --tags --abbrev=0 2>/dev/null || \
|
||||
git tag --sort=-version:refname | head -1 2>/dev/null || \
|
||||
(grep -o '"version": "[^"]*"' package.json 2>/dev/null | cut -d'"' -f4 | sed 's/^/v/') || \
|
||||
echo "dev") > /tmp/version.txt; \
|
||||
fi && \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hoerdle",
|
||||
"version": "0.1.6.34",
|
||||
"version": "0.1.6.35",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
Reference in New Issue
Block a user