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

Replace individual inputs with JSON string array of inputs #1014

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

Conversation

jdbaldry
Copy link
Member

@jdbaldry jdbaldry commented Jan 30, 2025

This lets us build multiples sources in a single deploy preview as demonstrated in grafana/mimir#10580.

I also think it allows us to mount source projects into Grafana Cloud documentation directly instead of a publishing directory although it doesn't use Hugo mounts for that.

Let me know if you'd like me to test anything specifically out for you so you can be confident in the changes.

This can be rolled out safely as tested in:

Signed-off-by: Jack Baldry [email protected]

  • I've used a relevant pull request (PR) title.
  • I've added a link to any relevant issues in the PR description.
  • I've checked my changes on the deploy preview and they look good.
  • I've added an entry to the What's new page (only required for notable changes).

Copy link
Contributor

github-actions bot commented Jan 30, 2025

@jdbaldry jdbaldry marked this pull request as ready for review February 4, 2025 17:40
This requires the same branch name for builds across multiple repositories but that's not too painful and isn't yet a planned use case.

Signed-off-by: Jack Baldry <[email protected]>
Copy link
Contributor

@robbymilo robbymilo left a comment

Choose a reason for hiding this comment

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

Looks good, just a question on updating each repo's workflow file.

@@ -204,16 +227,26 @@ jobs:
with:
name: deploy_preview
status: "${{ job.status }}"
url: "${{ steps.deploy.outputs.url }}${{ inputs.relative_prefix }}"
url: "${{ steps.deploy.outputs.url }}${{ (fromJSON(inputs.sources))[0].relative_prefix }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think only a single URL here is fine but it might cause some confusion.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I meant to check if I can put multiple URLs into the status check but I don't think I can

@jdbaldry jdbaldry requested a review from robbymilo February 19, 2025 09:29
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.

2 participants