-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
7507df0
to
e90777a
Compare
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
💻 Deploy preview available: |
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
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]>
There was a problem hiding this 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 }}" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Signed-off-by: Jack Baldry <[email protected]>
Signed-off-by: Jack Baldry <[email protected]>
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]