shivas / versioning-bundle

Simple way to version (semantic versioning 2.0.0) your Symfony2/3/4/5/6 application
MIT License
112 stars 30 forks source link

Loosing pre release version on version bump #12

Closed c33s closed 8 years ago

c33s commented 8 years ago

is it intended that i loose my pre release version if i do a version bump only with --build or do i have something misconfigured?

have a version file like that:

parameters:
    application_version: 2.0.0-dev-0.1.0

its for the development of a webpage in the version 2.0.0, for internal versioning the dev-x.y.z prerelease is added, which is manually adjusted (increased) by the developer.

on push, the CI server runs the following command:

   php ./bin/console app:version:bump --build=br-$CI_BUILD_REF_NAME.id-$CI_BUILD_ID.sha-$CI_BUILD_REF

the expected result would be something like that:

parameters:
    application_version: 2.0.0-dev-0.1.0+br-master.id-123456.sha-8843d7f92416211de9ebb963ff4ce28125932878

what i get is:

parameters:
    application_version: 2.0.0+br-master.id-123456.sha-8843d7f92416211de9ebb963ff4ce28125932878
c33s commented 8 years ago

my fault. has nothing to do with your bundle