当前位置:   article > 正文

git 哈希值作为版本号_将git commit哈希和Azure DevOps内部版本号和内部版本ID添加到ASP.NET网站

git 哈希值作为版本号
git 哈希值作为版本号

git 哈希值作为版本号

image

A few months back I moved my CI/CD (Continuous Integration/Continuous Development) to Azure DevOps for free. You get 1800 build minutes a month FREE and I'm not even close to using it with three occasionally-updated sites building on it. Earlier this week I wrote about making a cleaner and more intentional azure-pipelines.yml for an ASP.NET Core Web App

几个月前,我免费将CI / CD(连续集成/连续开发)迁移到Azure DevOps 。 您每月可以免费获得1800个构建分钟,并且我甚至无法将其与三个偶尔更新的站点一起使用。 本周早些时候,我写了一篇关于为ASP.NET Core Web App制作更简洁,更有目的的azure-pipelines.yml的文章。

I was working/pairing with Damian today because I wanted to get my git commit hashes and build ids embedded into the actual website so I could see exactly what commit is in production.

我今天与Damian合作/配对是因为我想获取git commit哈希并将构建的id嵌入到实际网站中,以便我可以确切地看到生产中的提交

That's live on hanselminutes.com righ tnow and looks like this

那是在hanselminutes.com上直播的,看起来像这样

© Copyright 2020, Scott Hanselman. Design by @jzy, Powered by .NET Core 3.1.2 and deployed from commit 6b48de via build 20200310.7

©版权所有2020, Scott Hanselman @jzy设计,由.NET Core 3.1.2支持,并通过build 20200310.7从commit 6b48de进行部署

There's a few things here and it's all in my ASP.NET Web App's main layout page called _layout.cshtml. You can look all about ASP.NET Core 101, .NET and C# over at https://dot.net/videos if you'd like. They've lovely videos.

这里有几件事,所有这些都在我的ASP.NET Web App的主要布局页面_layo

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/598500
推荐阅读
相关标签
  

闽ICP备14008679号