Code Monkey home page Code Monkey logo

Comments (8)

jdbruijn avatar jdbruijn commented on June 2, 2024

Good one! I've been releasing this by pushing a certain commit to the master branch that in turn triggered the release workflow. As we can't commit directly to master.

We should have a new mechanism of making releases. We could use the same one you guys use in renovatebot/renovate. What do you think and if the same as renovate, how does that work exactly cause I only saw the workflow with repository disptatch as trigger?

from github-action.

viceice avatar viceice commented on June 2, 2024

I think we should use the same idea as in our helm chart. So release for every renovate version and let them match.

from github-action.

jdbruijn avatar jdbruijn commented on June 2, 2024

I've took a quick look at helm-chart, but the way that is configured would mean that we make a release on every push to master right?

from github-action.

jdbruijn avatar jdbruijn commented on June 2, 2024

I don't see how that is set up to matching the Renovate version. If we release on every push to master, than how would the Renovate version be matched for commits other than Renovate. I think releasing for every version of Renovate is a great idea but am not sure about matching up the versions.

from github-action.

viceice avatar viceice commented on June 2, 2024

Yes, we can skip publish or overwrite existing versions.

My preference would be skip.

from github-action.

jdbruijn avatar jdbruijn commented on June 2, 2024

I'm strongly against overwriting tags as that could mess up repo's using this action and should IMHO be considered usecure.

What are you then suggesting exactly, the following as our release strategy?

  • On a commit to master that is a Renovate update (i.e. commit message starts with fix(deps): update renovate/renovate docker tag to ) we trigger the release workflow.
  • We get the version from the commit message (i.e. v19.228.2) and publish our release with that same version.
  • The release workflow updates the the changelog etc. and creates a release for this action, matching the Renovate version.

One thing that comes to mind, but is not a blocking issue IMHO is the following.

  • When we make changes we have to wait for a new Renovate version to be released before the changes are released.
    Based on how often I've seen Renovate being released in the past I don't think that should be a huge problem.

Did I understood this correctly? If so, I can agree with this strategy and think I can work up something like this fairly quickly :) BTW I'm currently working on converting this action to TypeScript!

from github-action.

viceice avatar viceice commented on June 2, 2024

Yes. For current docker action we can simply read the version from dockerfile and check if git tag exists.

from github-action.

jdbruijn avatar jdbruijn commented on June 2, 2024

That is a good one! I'll likely PR the conversion to TypeScript today, in which the Renovate version is in a TypeScript file (updated by a regex manager). I could just add a function to get the version, which we can use for making the releases.

Why should we check if a git tag exists? Do you mean whether the tag exists in the renovate repo, cause that tag must already exist since that would have triggered a version update here, right?

from github-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.