GithubHelp home page GithubHelp logo

Comments (2)

crazy-max avatar crazy-max commented on September 15, 2024

idk, if this is the intended behaviour

This is the expected behavior, see https://github.com/docker/metadata-action#latest-tag

You should have a condition on setting latest only for latest release (v2 in your case). I have this kind of pattern in https://github.com/crazy-max/docker-nextcloud/blob/c9a16f5914faae0f36caaea0290d41cbe8914f37/.github/workflows/build.yml#L56

In your case:

flavor: |
  latest=${{ startsWith(github.ref, 'refs/tags/v2') }}

from metadata-action.

douglasparker avatar douglasparker commented on September 15, 2024

idk, if this is the intended behaviour

This is the expected behavior, see https://github.com/docker/metadata-action#latest-tag

You should have a condition on setting latest only for latest release (v2 in your case). I have this kind of pattern in https://github.com/crazy-max/docker-nextcloud/blob/c9a16f5914faae0f36caaea0290d41cbe8914f37/.github/workflows/build.yml#L56

In your case:

flavor: |
  latest=${{ startsWith(github.ref, 'refs/tags/v2') }}

Is there a better way to handle this?

I was following this issue because I'd like to avoid having to update the workflow for every new major version release.

It would be much better if this action was smarter about the usage of the latest tag.

Why make people go through the extra work? 2 is greater than 1.

Backporting a bug fix should not update the latest tag to an older version...

from metadata-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.