Skip to content

[Feature Request] allow a flag to 'rediscover' previous versions #98

@bodin

Description

@bodin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions