Commit c7429770 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett Committed by Eric Eastwood

Add temporary CANARY env vars to be set in...

Add temporary CANARY env vars to be set in Kubernetes-with-canary.gitlab-ci.yml and used in page_layout_helper.rb

Conflicts:
	app/helpers/page_layout_helper.rb
parent 7e60ae56
...@@ -39,7 +39,10 @@ module PageLayoutHelper ...@@ -39,7 +39,10 @@ module PageLayoutHelper
end end
def favicon def favicon
Rails.env.development? ? 'favicon-green.ico' : 'favicon.ico' return 'favicon-yellow.ico' if ENV['CANARY'] == 'true'
return 'favicon-green.ico' if Rails.env.development?
'favicon.ico'
end end
def page_image def page_image
......
...@@ -28,7 +28,7 @@ build: ...@@ -28,7 +28,7 @@ build:
canary: canary:
stage: canary stage: canary
script: script:
- command canary - CANARY=true command canary
environment: environment:
name: production name: production
url: http://$CI_PROJECT_PATH_SLUG.$KUBE_DOMAIN url: http://$CI_PROJECT_PATH_SLUG.$KUBE_DOMAIN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment