Updated pipeline and commit id in nav
This commit is contained in:
Родитель
aec7dbf156
Коммит
9351a43386
|
@ -31,6 +31,5 @@
|
|||
</ul>
|
||||
|
||||
<p id="copyright-notice">
|
||||
<p class="build">#BUILD_ID#</p>
|
||||
<p class="commit"><a href="https://dev.azure.com/theazurechallenge/Kubernetes/_git/Challenges/commit/#COMMIT_ID#">#COMMIT_ID#</a></p>
|
||||
<p class="build">#BUILD_ID# - <a class="commit" href="https://dev.azure.com/theazurechallenge/Kubernetes/_git/Challenges/commit/#COMMIT_ID#">#COMMIT_ID#</a></p>
|
||||
</p>
|
|
@ -24,8 +24,9 @@ steps:
|
|||
- script: sed -i 's/#BUILD_ID#/$(build.buildNumber)/g' _includes/nav.html
|
||||
displayName: 'update site with build number'
|
||||
|
||||
- script: sed -i 's/#COMMIT_ID#/$(build.SourceVersion)/g' _includes/nav.html
|
||||
displayName: 'update site with build number'
|
||||
- script: |
|
||||
SHORTCOMMITID=$(echo $(sourceVersion) | cut -c1-7)
|
||||
sed -i "s/#COMMIT_ID#/$SHORTCOMMITID/g" _includes/nav.html
|
||||
|
||||
- script: docker build -f Dockerfile -t $(imageName) .
|
||||
displayName: 'docker build'
|
||||
|
|
Загрузка…
Ссылка в новой задаче