gitversion | A helper for bumping versions via git tags | Build Tool library
kandi X-RAY | gitversion Summary
kandi X-RAY | gitversion Summary
A helper for bumping versions via git tags.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- main is the main entry point for testing
- Bump the version of the given prefix
- FromString creates a Version from a string
- versions returns a list of versions with the given prefix .
- LastCommit returns the last commit .
- Tagged returns true if the current commit is in the last commit .
- Tags returns a list of tag names .
- LastCommitMessage returns last commit message
- Tag adds a tag to the container
- Returns the highest version .
gitversion Key Features
gitversion Examples and Code Snippets
Community Discussions
Trending Discussions on gitversion
QUESTION
I am trying to start up a couple of containers locally using k8s but container creation is stopped cause of ImagePullBackOff, ErrImagePull. The yaml is fine, tested it on another workstation. And i can pull images using regular docker. But it fails in k8s/minikube environment
Error container logs is
...ANSWER
Answered 2022-Apr-02 at 13:06It is a kind of workaround for the problem, if you can pull image using docker pull then do it on all the worker nodes and then add an
ImagePullPolicy:IfNotPresent
inside the yamls where you are mentioning image name, then k8s will first check whether it is present inside the machine and if yes then directly use it
QUESTION
I would like to integrate an automated versioning system in my ASP.NET project. For each release, it should have a version number based on the previous release. I am planning to integrate Gitversion https://gitversion.net/. Does anyone use it in your projects? For the CI/CD pipeline we have teamcity and octopus deploy.
What is the best practice for automated software release versions?
Thanks in advance
...ANSWER
Answered 2022-Mar-31 at 13:10As one of the maintainers of GitVersion, I'm obviously biased, but since you're asking how to use GitVersion to implement a "best practice for automated software release", I'm going to unashamedly give you a textual description of a talk I've done on how I prefer to version and release software with GitVersion, TeamCity and Octopus Deploy.
Developer WorkflowThe first thing you should figure out is what kind of developer workflow you want for your software. GitVersion supports Git Flow and many simplified variants of it, and GitHub Flow (as well as many other trunk based development flows). Which workflow you should choose depends on what type of software you are developing, your team and most importantly; your personal preference.
Once you have chosen your workflow, you can configure which mode
GitVersion should operate under.
GitVersion works by calculating a version number from your Git repository. This means that you should not commit a version number to Git in any shape or form. Not within a package.json
, pom.xml
, .csproj
, or any other build- or project-related file that often mandates the existence of a version number.
Instead, you should allow GitVersion to produce a version number based on the Git history, using the currently checked out commit as its starting point, and searching through the parents and their tags to calculate an appropriate version number for the current commit. This version number can then be used in any way you want in your build pipeline. You can, for instance, write GitVersion's FullSemVer
variable to package.json
by executing the following command:
QUESTION
I was setting up my new Mac for my eks environment. After the installation of kubectl, aws-iam-authenticator and the kubeconfig file placement in default location. I ran the command kubectl command and got this error mentioned below in command block.
My cluster uses v1alpha1 client auth api version so basically i wanted to use the same one in my Mac as well.
I tried with latest version (1.23.0) of kubectl as well, still the same error. Whereas When i tried to do with aws-iam-authenticator (version 0.5.5) I was not able to download lower version.
Can someone help me to resolve it?
...ANSWER
Answered 2022-Mar-28 at 09:41I have the same problem
You're using aws-iam-authenticator
0.5.5
, AWS changed the way it behaves in 0.5.4
to require v1beta1
.
It depends on your configuration, but you can try to change the K8s context you're using to v1beta1
Otherwise switch back to aws-iam-authenticator
0.5.3
- you might need to build it from source if you're using the M1 architecture as there's no darwin-arm64
binary built for it
QUESTION
What happened: We're on AKS with RBAC enabled. Executing any kubectl/helm command that connects to the k8s cluster, I have to reauthenticate. Output:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXX to authenticate.
This succeeds but then when I execute the next kubectl command I have to reauthenticate again.
What you expected to happen: Authenticate and use that token for more than one command.
How to reproduce it (as minimally and precisely as possible):
Get credentials and then execute any kubectl command.
Anything else we need to know?:
Environment:
...ANSWER
Answered 2022-Mar-26 at 16:53QUESTION
I'm following a Kubernetes tutorial, and cannot run first command (minikube start --vm-driver=hyperkit
). I'm using a MacBook Pro Intel on macOs Monterey. I cannot make it work because of TLS error.
ANSWER
Answered 2022-Mar-20 at 10:02The kubectl version
error helped :
Unable to connect to the server: dial tcp i/o time out
It seems I had already played with k8s :
QUESTION
I get an error "View Index.cshtml not found" for my ASP.NET Core 6 MVC app when building it on Azure build agent, but when building locally, it is working fine.
I tried same command which is executed on build agent still could not get the issue. Tried several code changes to fix this issue but still no clues. Searched on net even on stackoverflow but sadly no solution works.
Please someone help me out.
I am using following input in pipeline.yaml:
...ANSWER
Answered 2022-Jan-11 at 11:56Please use following command in pipeline.yaml hope it should work.
QUESTION
For the kube-prometheus-stack we added more and more dashboards config to /grafana/dashboards
folder to have more and more provisioned dashboards.
And then in one day we've done this:
...ANSWER
Answered 2022-Feb-19 at 18:36Secret ... is invalid: data: Too long: must have at most 1048576 bytes
This is a well known limitation of Kubernetes secrets (version 1.23 at the moment). The official k8s documentation says:
Individual secrets are limited to 1MiB in size. This is to discourage creation of very large secrets which would exhaust the API server and kubelet memory. However, creation of many smaller secrets could also exhaust memory. More comprehensive limits on memory usage due to secrets is a planned feature.
So, first of all, check if some unnecessary files/dirs
are stored in your chart directories and remove
them. I am sure you have already removed all unnecessary files.
Using such a storage backend is particularly useful if your release information weighs more than 1MB (in which case, it can't be stored in Secrets because of internal limits in Kubernetes).
To enable the SQL backend, you'll need to deploy a SQL database and set the environmental variable HELM_DRIVER
to sql
. The DB details are set with the environmental variable HELM_DRIVER_SQL_CONNECTION_STRING
.
You can set it in a shell as follows:
QUESTION
I am trying to connect a folder in windows to a container folder. This is for a .NET app that needs to read files in a folder. In a normal docker container, with docker-compose, the app works without problems, but since this is only one of several different apps that we will have to monitor, we are trying to get kubernetes involved. That is also where we are failing. As a beginner with kubernetes, I used kompose.exe to convert the compose files to kuberetes style. However, no matter if I use hostPath or persistentVolumeClaim as a flag, I do not get things to work "out of the box". With hostPath, the path is very incorrect, and with persistentVolumeClaim I get a warning saying volume mount on the host is not supported. I, therefore, tried to do that part myself but can get it to work with neither persistent volume nor entering mount data in the deployment file directly. The closest I have come is that I can enter the folder, and I can change to subfolders within, but as soon as I try to run any other command, be it 'ls' or 'cat', I get "Operation not permitted". Here is my docker compose file, which works as expected by
...ANSWER
Answered 2022-Feb-08 at 05:19Thanks to RadekW, the problem is now solved. The path should be written as /run/desktop/mnt/host/c/PATH/TO/FILE
, and in my case: /run/desktop/mnt/host/c/temp/testfiles
. If I find any documentation about this, I will add a source.
QUESTION
I am a bit desperate and I hope someone can help me. A few months ago I installed the eclipse cloud2edge package on a kubernetes cluster by following the installation instructions, creating a persistentVolume and running the helm install command with these options.
...ANSWER
Answered 2022-Feb-09 at 06:58based on the iconic Failed to create SSL Connection output in the logs, I assume that you have run into the dreaded The demo certificates included in the Hono chart have expired problem.
The Cloud2Edge package chart is being updated currently (https://github.com/eclipse/packages/pull/337) with the most recent version of the Ditto and Hono charts (which includes fresh certificates that are valid for two more years to come). As soon as that PR is merged and the Eclipse Packages chart repository has been rebuilt, you should be able to do a helm repo update
and then (hopefully) succesfully install the c2e package.
QUESTION
I have the git commits and the tags as below
The tag of the latest commit is 12.0.0-beta.6. When I run GitVersion, the result is as below
So the build number on TeamCity should be 12.0.0-beta.6, but I don't know why the GitVersion generates build number 12.0.0-beta.6+8 on TeamCity.
My build steps are as below
Does anyone know why GitVersion generates the redundant "+8" after the FullSemVer? How to remove this dedundant "+8"? Thank you very much.
...ANSWER
Answered 2022-Jan-18 at 06:51Read carefully and understand at least part of GitVerson docs (paragraphs 1+2)
The shortest possible extraction
GitVersion will increment the metadata for each build so you can tell builds apart. For example,
1.0.0+5
followed by1.0.0+6
. It is important to note that build metadata is not part of the semantic version; it is just metadata!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gitversion
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page