Comments (5)
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.
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.
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.
@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.
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)
- nbgv stopped working on GitHub CI in last few days after upgrade to [email protected] HOT 1
- [email protected] System.NullReferenceException: Object reference not set to an instance of an object. HOT 1
- Add option to tag a public version based on calculated nbgv version HOT 3
- Question regarding PublicRelease HOT 2
- Preview Builds in PR for NuGet? HOT 2
- Regarding nbgv.json HOT 3
- Warning while running NBGV task HOT 4
- nbgv is broken with now that the `add-path` command is disabled HOT 13
- Publish 0.4.0 on GitHub Marketplace HOT 2
- Action fails if nbgv is already installed
- Take parameters for `nbgv cloud` command
- Wrong `BuildingRef` when a prior GitHub action moves HEAD HOT 13
- Update nbgv action to run on node 16 HOT 3
- Do not use set-output HOT 4
- Add option to stamp package.json with nbgv version HOT 2
- Are actions not running on this repo itself? HOT 3
- Allow specifying path to version.json file HOT 1
- nbgv error when running in github action HOT 2
- Error when installing dotnet before nbgv HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbgv.