Skip to content

Commit

Permalink
Merge pull request #31 from ScilifelabDataCentre/develop
Browse files Browse the repository at this point in the history
make latest changes live
  • Loading branch information
LianeHughes authored Nov 17, 2023
2 parents 2fbed6e + 9c882b2 commit b6f9072
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: HUGO_ENV_ARG=${{ github.event_name == 'release' && format('{0}-{1}', 'production', github.ref_name)
|| github.ref_name == 'main' && format('{0}-{1}', 'production', github.sha)
|| format('{0}-{1}', 'development', github.sha) }}
9 changes: 8 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@
<img sclass="pb-2" src="/img/KAW_logo.png" alt="Knut and Alice Wallenberg Foundation logo" height="80" style="object-fit:contain;">
</div>

<!-- The hugo env value is passed via github action, during image building -->
{{ $env_info := split hugo.Environment "-" }}
{{ $git_sha := index $env_info 1 }}
{{ $code_version := cond (strings.HasPrefix $git_sha "v") $git_sha (substr $git_sha 0 7) }}
<div class="d-flex flex-column flex-md-row justify-content-md-center mt-2">
<a class="small pr-md-2" href="https://github.com/ScilifelabDataCentre/covid-sample-collection-database">Website code (GitHub)</a>
<a class="small pr-md-2" target="_blank"
href="https://github.com/ScilifelabDataCentre/covid-sample-collection-database{{ with $code_version }}/tree/{{ $code_version }}{{ end }}">
Website code on GitHub{{ with $code_version }} ({{ $code_version }}){{ end }}
</a>
<span class="d-none d-md-block border-right"></span>
<a class="small pl-md-2" href="https://pathogens.se/privacy/">Privacy notice</a>
</div>
Expand Down

0 comments on commit b6f9072

Please sign in to comment.