You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The github build action will dump a `JEKYLL_CONFIG_OVERRIDES` action
variable into a file `_config-overrides.yml` which will override
whatever you want in `_config.yml`.
Why:
It's convenient to be able to deploy the website on a forked repository.
Currently this doesn't work smoothly because by default with actions
because it builds with kroxylicious.io as the url. The mechanism that
configures the baseurl is also not wired up correctly.
To override the url we need to add in an override configuration, so I
figure we should use the same mechanism to override baseurl. The fork
can set a variable containing both these values.
Signed-off-by: Robert Young <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,26 @@ To build and serve the website from a container you can run `./run.sh`. It will
27
27
28
28
This assumes the use of `podman`, if you are a `docker` user you can run `CONTAINER_ENGINE=docker ./run.sh`.
29
29
30
+
### Running on GitHub Pages on a Fork
31
+
32
+
To exercise the GitHub workflows and share changes it can be convenient to deploy a fork to GitHub Pages.
33
+
34
+
To enable pages on your fork:
35
+
1. go to `https://github.com/${yourname}/kroxylicious.github.io/settings` in a browser, replacing `${yourname}` with your GitHub username.
36
+
2. Navigate to "Pages" under "Code and automation"
37
+
3. Under "Build and deployment", under "Source", select "Github Actions".
38
+
4. Navigate to "Actions" under "Secrets and variables" under "Security"
39
+
5. Select the "Variables" tab
40
+
6. Click "New repository variable"
41
+
7. Create a new repository variable named `JEKYLL_CONFIG_OVERRIDES` with value:
42
+
```yaml
43
+
baseurl: "kroxylicious.github.io"
44
+
url: "https://${yourname}.github.io"
45
+
```
46
+
replacing `${yourname}` with your GitHub username.
47
+
8. Push changes to any branch of your fork and then trigger a manual run of `https://github.com/${yourname}/kroxylicious.github.io/actions/workflows/jekyll-gh-pages.yml`,
48
+
supplying the branch you want to checkout and deploy as a parameter.
49
+
30
50
# Binary content
31
51
32
52
We have an ever-growing collection of binary assets, mostly images but also a few PDF slide decks etc all of these
0 commit comments