Compare commits

...

7 Commits

Author SHA1 Message Date
gitea-actions
044b64152c chore : bump version to v1.9.8
Some checks failed
Auto Tag Develop / tag (push) Successful in 7s
Build & Push Docker Image / build (push) Successful in 36s
Build Release Artefact / build (push) Failing after 1m38s
2026-04-01 12:52:57 +00:00
Matthieu
4de3ffa0e0 chore : trigger auto-tag
All checks were successful
Auto Tag Develop / tag (push) Successful in 9s
2026-04-01 14:52:45 +02:00
Matthieu
5bdf578de9 refactor : migrate VERSION file to config/version.yaml
Some checks failed
Auto Tag Develop / tag (push) Failing after 7s
Same versioning system as SIRH/Lesstime. Updates nuxt.config.ts,
Dockerfile, deploy.sh, auto-tag CI, and release script.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:52:01 +02:00
gitea-actions
bc1b757a96 chore : bump version to v1.9.7
All checks were successful
Auto Tag Develop / tag (push) Successful in 7s
Build & Push Docker Image / build (push) Successful in 18s
Build Release Artefact / build (push) Successful in 2m53s
2026-04-01 12:47:15 +00:00
Matthieu
24b664e85b fix : update frontend/ to latest develop branch content
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
The initial merge only had master content. This replaces frontend/
with the full develop branch including reference-auto, constructeur
links, versioning, and all recent features.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:47:04 +02:00
gitea-actions
8565e68062 chore : bump version to v1.9.6
All checks were successful
Auto Tag Develop / tag (push) Successful in 9s
Build & Push Docker Image / build (push) Successful in 23s
Build Release Artefact / build (push) Successful in 2m5s
2026-04-01 12:36:42 +00:00
Matthieu
a8a95b16a9 fix : mount var/storage/documents volume instead of var/uploads
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:36:30 +02:00
10 changed files with 24 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ jobs:
token: ${{ secrets.REGISTRY_TOKEN }}
persist-credentials: true
- name: Create next tag from VERSION
- name: Create next tag from config/version.yaml
shell: bash
run: |
set -euo pipefail
@@ -28,18 +28,18 @@ jobs:
fi
changed_version=false
if git diff --name-only "${{ gitea.event.before }}" "${{ gitea.event.after }}" | grep -q '^VERSION$'; then
if git diff --name-only "${{ gitea.event.before }}" "${{ gitea.event.after }}" | grep -q '^config/version\.yaml$'; then
changed_version=true
fi
read_version() {
cat VERSION | tr -d '[:space:]'
awk -F': *' '/app\.version:/{print $2}' config/version.yaml | tr -d '[:space:]' | tr -d "'\""
}
if $changed_version; then
version="$(read_version)"
if ! [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid version in VERSION: $version" >&2
echo "Invalid version in version.yaml: $version" >&2
exit 1
fi
else
@@ -52,10 +52,10 @@ jobs:
version="${major}.${minor}.$((patch + 1))"
fi
echo "$version" > VERSION
printf "parameters:\\n app.version: '%s'\\n" "$version" > config/version.yaml
git config user.name "gitea-actions"
git config user.email "gitea-actions@local"
git add VERSION
git add config/version.yaml
git commit -m "chore : bump version to v$version" || true
git push origin develop || true
fi

View File

@@ -1 +0,0 @@
1.9.5

View File

@@ -1,7 +1,7 @@
api_platform:
title: Inventory API
description: API de gestion d'inventaire industriel — machines, pièces, composants, produits.
version: 1.9.1
version: 1.9.6
defaults:
stateless: false
cache_headers:

2
config/version.yaml Normal file
View File

@@ -0,0 +1,2 @@
parameters:
app.version: '1.9.8'

View File

@@ -19,7 +19,6 @@ COPY migrations migrations/
COPY public public/
COPY src src/
COPY templates templates/
COPY VERSION VERSION
RUN composer dump-autoload --optimize --no-dev
@@ -31,6 +30,7 @@ COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
COPY frontend/ ./
COPY config/version.yaml /app/config/version.yaml
ENV CI=1 \
NUXT_TELEMETRY_DISABLED=1 \
NUXT_PUBLIC_API_BASE_URL=/api \

View File

@@ -24,5 +24,5 @@ echo "==> Clearing cache..."
sudo docker compose exec -T -u www-data app php bin/console cache:clear --env=prod
sudo docker compose exec -T -u www-data app php bin/console cache:warmup --env=prod
VERSION=$(sudo docker compose exec -T app cat VERSION)
VERSION=$(sudo docker compose exec -T app cat config/version.yaml | grep 'app.version' | awk -F"'" '{print $2}')
echo "==> Deployed v${VERSION}"

View File

@@ -6,7 +6,7 @@ services:
ports:
- "8082:80"
volumes:
- ./uploads:/var/www/html/var/uploads
- ./storage:/var/www/html/var/storage/documents
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped

View File

@@ -147,7 +147,7 @@ defineEmits<{
**Step 2: Run lint**
Run: `cd frontend && npm run lint:fix`
Run: `cd Inventory_frontend && npm run lint:fix`
**Step 3: Replace document list in each of the 5 files**
@@ -166,7 +166,7 @@ Remove the now-unused imports (`documentIcon`, `formatSize`, `shouldInlinePdf`,
**Step 4: Run lint + typecheck**
Run: `cd frontend && npm run lint:fix && npx nuxi typecheck`
Run: `cd Inventory_frontend && npm run lint:fix && npx nuxi typecheck`
**Step 5: Commit**
@@ -258,7 +258,7 @@ Import sanitize/hydrate functions from the new files. File should end up ~270 li
**Step 4: Verify all imports across the codebase still work**
Run: `cd frontend && npx nuxi typecheck`
Run: `cd Inventory_frontend && npx nuxi typecheck`
**Step 5: Commit**

View File

@@ -3,12 +3,14 @@ import { readFileSync } from 'node:fs'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
// Lire la version depuis le fichier VERSION à la racine du projet parent
// Lire la version depuis config/version.yaml à la racine du projet parent
const getAppVersion = (): string => {
try {
const __dirname = dirname(fileURLToPath(import.meta.url))
const versionPath = resolve(__dirname, '..', 'VERSION')
return readFileSync(versionPath, 'utf-8').trim()
const versionPath = resolve(__dirname, '..', 'config', 'version.yaml')
const content = readFileSync(versionPath, 'utf-8')
const match = content.match(/app\.version:\s*'([^']+)'/)
return match ? match[1] : '0.0.0'
} catch {
return '0.0.0'
}

View File

@@ -11,11 +11,11 @@ NC='\033[0m' # No Color
# Répertoire racine du projet
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
VERSION_FILE="$PROJECT_ROOT/VERSION"
VERSION_FILE="$PROJECT_ROOT/config/version.yaml"
API_PLATFORM_FILE="$PROJECT_ROOT/config/packages/api_platform.yaml"
# Lire la version actuelle
current_version=$(cat "$VERSION_FILE" | tr -d '\n')
current_version=$(awk -F': *' '/app\.version:/{print $2}' "$VERSION_FILE" | tr -d "' \n\r")
# Fonction pour afficher l'aide
show_help() {
@@ -113,8 +113,8 @@ cd "$PROJECT_ROOT"
# ===========================================
# ÉTAPE 1 : Mettre à jour VERSION
# ===========================================
echo -e "${BLUE}[1/4]${NC} Mise à jour du fichier VERSION..."
echo "$new_version" > "$VERSION_FILE"
echo -e "${BLUE}[1/4]${NC} Mise à jour de config/version.yaml..."
printf "parameters:\\n app.version: '%s'\\n" "$new_version" > "$VERSION_FILE"
# ===========================================
# ÉTAPE 2 : Mettre à jour api_platform.yaml