This is a minimal .NET 9 API project used for integration testing the ModelingEvolution.AutoUpdater.
- GET /version - Returns the current version of the application
- GET /health - Health check endpoint
- GET / - Application info and available endpoints
dotnet build src/VersionApp.csproj
dotnet run --project src/VersionApp.csproj
# Build version 1.0.0
docker build -t versionapp:1.0.0 --build-arg VERSION=1.0.0 .
# Build version 1.1.0
docker build -t versionapp:1.1.0 --build-arg VERSION=1.1.0 .
-
Build and tag initial version:
docker build -t versionapp:1.0.0 --build-arg VERSION=1.0.0 .
-
Run the container:
docker run -d -p 5000:5000 versionapp:1.0.0
-
Check version:
curl http://localhost:5000/version # Output: {"version":"1.0.0"}
-
Build new version:
docker build -t versionapp:1.1.0 --build-arg VERSION=1.1.0 .
-
Update via AutoUpdater (when configured)
This project is used as a test application for the ModelingEvolution.AutoUpdater. The docker-compose configuration for deployment is maintained in a separate repository: https://github.com/modelingevolution/version-app-compose.git
The project uses Git tags for version management:
git tag v1.0.0
git push origin v1.0.0
When AutoUpdater detects a new tag in the compose repository, it will:
- Pull the latest compose configuration
- Check out the tagged version
- Run
docker-compose up -d
to update the container