Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.25 KB

File metadata and controls

63 lines (46 loc) · 2.25 KB

Gestion des Versions

Ce fichier contient la version actuelle de l'image Docker.

⚙️ Auto-incrémentation

Le numéro de version est automatiquement incrémenté à chaque build :

  • À chaque push sur main, le numéro PATCH (dernier chiffre) est incrémenté automatiquement
  • Exemple : 1.0.5 devient 1.0.6 au prochain build
  • GitHub Actions commite automatiquement la nouvelle version

🎯 Changement manuel de version

Le système détecte automatiquement les patterns spéciaux pour les changements majeurs/mineurs :

Pour une nouvelle fonctionnalité (MINOR) :

  • Changez VERSION en X.Y.999 (ex: 1.0.999)
  • Le prochain build créera 1.1.0, puis 1.1.1, 1.1.2, etc.

Pour un changement majeur/breaking change (MAJOR) :

  • Changez VERSION en X.9.999 (ex: 1.9.999)
  • Le prochain build créera 2.0.0, puis 2.0.1, 2.0.2, etc.

Exemples concrets :

  • 1.0.9991.1.0 (nouvelle fonctionnalité)
  • 1.9.9992.0.0 (breaking change)
  • 2.9.9993.0.0 (breaking change)
  • 1.5.9991.6.0 (nouvelle fonctionnalité)

Format

Le format utilisé est le versionnage sémantique (semver) : MAJOR.MINOR.PATCH

  • MAJOR (1.x.x) : Changements incompatibles (breaking changes) - PHP 8 → PHP 9
  • MINOR (x.1.x) : Nouvelles fonctionnalités (ajout d'extensions PHP, etc.)
  • PATCH (x.x.1) : Corrections de bugs, ajustements mineurs de configuration (auto-incrémenté)

📦 Tags créés automatiquement

À chaque build, GitHub Actions créera 2 tags :

  • ghcr.io/mouette03/webapp:latest (toujours la dernière version)
  • ghcr.io/mouette03/webapp:v1.0.6 (version avec préfixe v)

📝 Exemples

Scénario 1 - Ajustements de config :

  • Vous modifiez config.json et poussez
  • 1.0.51.0.6 (automatique)
  • Tags : latest, v1.0.6

Scénario 2 - Nouvelle extension PHP :

  • Vous modifiez VERSION : 1.0.81.1.0
  • Vous modifiez config.json (ajout extension)
  • Vous poussez
  • Tags : latest, v1.1.0
  • Au prochain push : Tags : latest, v1.1.1

Scénario 3 - Nouvelle version PHP majeure :

  • Vous modifiez VERSION : 1.5.122.0.0
  • Vous modifiez config.json (php_version: "9.0")
  • Vous poussez
  • Tags : latest, v2.0.0
  • Au prochain push : Tags : latest, v2.0.1