Skip to content

Commit

Permalink
Fix release version in footer
Browse files Browse the repository at this point in the history
This has been broken since we moved to EKS and the SHA is no longer
provided.

We can use the [SENTRY_RELEASE](https://github.com/alphagov/govuk-helm-charts/blob/077117e7f40c096a958f9e0b853a2bd76cf43f26/charts/generic-govuk-app/templates/deployment.yaml#L92C1-L92C1) environment variable which is defined for every app and takes its value from
the container image's tag.
  • Loading branch information
deborahchua committed Sep 25, 2023
1 parent 15ca127 commit 3de22a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
<% if content_for?(:thin_form) %></div><% end %>
<% end %>

<% content_for :footer_version, CURRENT_RELEASE_SHA %>
<% if ENV.key? "SENTRY_RELEASE" %>
<% content_for :footer_version, ENV["SENTRY_RELEASE"] %>
<% end %>

<%# use the govuk_admin_template layout %>
<%= render :template => 'layouts/govuk_admin_template' %>
6 changes: 0 additions & 6 deletions config/initializers/current_release_sha.rb

This file was deleted.

0 comments on commit 3de22a0

Please sign in to comment.