Skip to content

Commit

Permalink
Changing to first 7 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Jan 6, 2025
1 parent d1440f6 commit bc4506e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pipeline {
steps {
script {
dir("server") {
GIT_COMMIT_HASH = sh (script: "git log -n 1 --pretty=format:'%H'", returnStdout: true)
GIT_COMMIT_HASH = sh (script: "git log -n 1 --pretty=format:'%H' | head -c 7", returnStdout: true)
docker.withRegistry('https://' + registryEndpoint, 'docker-registry') {
serverImage = docker.build(serverImageName, "--build-arg STREAMER_VERSION_ARG=${env.BRANCH_NAME}-${env.BUILD_ID} --build-arg STREAMER_COMMIT_ARG=${GIT_COMMIT_HASH} --no-cache .")
}
Expand Down
4 changes: 2 additions & 2 deletions server/templates/_base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
{{template "content" .}}
<br><br>
{{ $year := thisYear }}
<footer id="footer">Streamer (version: {{ getVersion }}, <a href="https://github.com/ystv/streamer/commit/{{ getCommit }}"
target="_blank">GitHub (commit: {{ getCommit }})</a>) - created by Liam Burnand 2022{{if ne $year 2022}}-{{ $year }}{{end}}</footer>
<footer id="footer">Streamer (<a href="https://github.com/ystv/streamer" target="_blank">version: {{ getVersion }}</a>, <a href="https://github.com/ystv/streamer/commit/{{ getCommit }}"
target="_blank">commit: {{ getCommit }}</a>) - created by Liam Burnand 2022{{if ne $year 2022}}-{{ $year }}{{end}}</footer>
<script>
const toggleSwitch = document.getElementById("theme_checkbox");

Expand Down

0 comments on commit bc4506e

Please sign in to comment.