Git Product home page Git Product logo

Comments (5)

AArnott avatar AArnott commented on September 25, 2024 1

Yes, that's true. I hear that people's docker builds tend to not map in the .git directory, so nb.gv (the nuget package) doesn't work inside it. We should take such discussions over to that repo. In fact this one is already discussed: dotnet/Nerdbank.GitVersioning#416

from nbgv.

AArnott avatar AArnott commented on September 25, 2024

You would put this action near the top of your existing pipeline/workflow. This will allow you to consume its outputs in the rest of your build.

If you're developing .NET projects however, the github action isn't particularly relevant because by far the easiest way to version your projects is to install the nerdbank.gitversioning nuget package.

from nbgv.

Ian1971 avatar Ian1971 commented on September 25, 2024

If you're developing .NET projects however, the github action isn't particularly relevant because by far the easiest way to version your projects is to install the nerdbank.gitversioning nuget package.

Is there a way to get the current version to be used in another github action (docker build) without using the nbgv github action?

from nbgv.

AArnott avatar AArnott commented on September 25, 2024

@Ian1971 I'm not sure I understand the question. Are you asking how to use this GitHub Action so you don't have to use the Action?
Once you use the nbgv action, you get variables you can use later in your workflow, presumably also being able to pass them to docker builds.

from nbgv.

Ian1971 avatar Ian1971 commented on September 25, 2024

Sorry if not clear. It was in response to this "If you're developing .NET projects however, the github action isn't particularly relevant because by far the easiest way to version your projects is to install the nerdbank.gitversioning nuget package." which seems to be saying you don't need the github action if you are using the nuget package.

from nbgv.

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.