Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Get last n releases || releases compatible with semver range #37

Open
LongLiveCHIEF opened this issue Sep 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@LongLiveCHIEF
Copy link
Contributor

LongLiveCHIEF commented Sep 11, 2020

Often if you're doing something like building a docker image around a product (for me it's the official octoprint/octoprint image), then you need to not only build an image for the latest release of a product, but several of the previous releases.

It would be great to be able to specify the last n releases, or to specify a semver input and get all tags that match.

Here's what I'm thinking this could look like: (see example of creating a matrix in one job and passing it to another from github actions docs

jobs:
  tagging:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.tags.outputs.tag_matrix}}
    steps:
    - id: tags
      uses: HackerHappyHour/tagging-strategy@v2
      with:
        tag_expansion_rule: '~X.Y.Z'
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix: $ {{ fromJson(needs.tagging.outputs.matrix) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant