We wrote tasks that allow us to quickly roll back a deployment based on a previous version. We also track the currently deployed version so that we can restart / redeploy.
When we 'roll back' a version and push that version to a file using the git driver - the resource will not 'discover' it as new since the version has shown in the past.
version=1.0.0
// Deploy New
version=2.0.0
// Roll Back
version=1.0.0
After the last step - version correctly stores 1.0.0 but still reports 2.0.0 in concourse due to this behavior.
it returns the version specified in the file if it is equal to or greater than current version, otherwise it returns no versions.
I would like to propose an option like below
- name: version
type: semver
source:
driver: git
allow_duplicate_versions: true
If this is a feature that could be included - I can work on a PR
We wrote tasks that allow us to quickly roll back a deployment based on a previous version. We also track the currently deployed version so that we can restart / redeploy.
When we 'roll back' a version and push that version to a file using the git driver - the resource will not 'discover' it as new since the version has shown in the past.
After the last step - version correctly stores 1.0.0 but still reports 2.0.0 in concourse due to this behavior.
I would like to propose an option like below
If this is a feature that could be included - I can work on a PR