Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm charts redirect #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Helm charts redirect #81

wants to merge 2 commits into from

Conversation

SantiagoTorres
Copy link
Member

We need to host our helm-charts repository on github pages (to decouple updating the repository) for that project. Let's add a redirect on netlify to that github repo for ease of discovery as well.

Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for in-toto ready!

Name Link
🔨 Latest commit c7f40b3
🔍 Latest deploy log https://app.netlify.com/sites/in-toto/deploys/6753315e4973520009f058ef
😎 Deploy Preview https://deploy-preview-81--in-toto.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

In order to support assets inside of other domains (e.g., our github
pages), we need to add support for sending 301/302 replies. Add a layout
that provides a redirect to the configured target.

This uses a template such as:

	---
	type: redirect
	target: location
	---

This is inspired by this blogpost:

	https://blog.builtwithcaffeine.cloud/posts/hugo-url-redirect/

Signed-off-by: Santiago Torres-Arias <[email protected]>
Our helm-charts subproject requires a repository hosted on github pages
(for simplicity). Add a redirect endpoint in in-toto.io to our github
pages for helm-charts.

Signed-off-by: Santiago Torres-Arias <[email protected]>
Copy link
Collaborator

@chalin chalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very interesting, I didn't know about that Hugo functionality ... and can't even find any reference to it in the Hugo docs. nor (after a quick search) in the Hugo code repo. Found it: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/alias.html

Can you offer any referenes @SantiagoTorres?

Following the site rework of #86, this PR will need to be reimplemented. Let me give it a try.

@chalin
Copy link
Collaborator

chalin commented Dec 16, 2024

Let's track any discussion via:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants