diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6a46e52499..eabbe13fea 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,6 +4,10 @@ on: push: branches: - master + schedule: + # rebuild once a day at 04:17 UTC to refresh the live stats (scripts/fetch-stats.py) + - cron: "17 4 * * *" + workflow_dispatch: defaults: run: @@ -13,6 +17,10 @@ defaults: permissions: contents: read +concurrency: + group: publish-website + cancel-in-progress: false + jobs: build-and-publish-website: # Depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions @@ -31,6 +39,12 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + - name: Fetch live stats + run: | + python3 scripts/fetch-stats.py + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build and publish website run: | make publish diff --git a/.gitignore b/.gitignore index 8d64d7f0ac..0015113d2d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .bundle .jekyll-metadata .sass-cache +/_data/live_stats.json diff --git a/404.html b/404.html index 0583272d70..1943245e11 100644 --- a/404.html +++ b/404.html @@ -1,18 +1,20 @@ --- layout: default +title: "Page not found" permalink: /404.html -stylesheet: error-code --- -
Error code: 404
We can't seem to find the page you're looking for. Please check the URL to make sure the path is correct.
Error code: 500 Internal Server Error
We're working towards building something better. Try again soon.
Error code: 500 Internal Server Error
Something went wrong on our side. Try again in a minute.
Ask questions and share configs with maintainers and other users.
+ slack.rook.io{% include icon.html name="arrow" %} +Second Tuesday of every month, 9:00 AM Pacific. Agenda and recordings are public.
+ Meeting calendar{% include icon.html name="arrow" %} +Start with a good first issue.
+ Find a first issue{% include icon.html name="arrow" %} +Discussions, releases and source.
+ github.com/rook/rook{% include icon.html name="arrow" %} +Contributors from {{ site.data.stats.organizations }} organizations
+ See who runs Rook in production{% include icon.html name="arrow" %} +