Skip to content

Commit

Permalink
Run local Kroki server in GitHub Actions and use it in Antora
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Jul 26, 2023
1 parent 6194fb0 commit 72c27d5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:
build:
runs-on: ubuntu-latest

services:
kroki:
image: yuzutech/kroki
env:
KROKI_MERMAID_HOST: kroki-mermaid
ports:
- 8000:8000
kroki-mermaid:
image: yuzutech/kroki-mermaid

steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ jobs:
build:
runs-on: ubuntu-latest

services:
kroki:
image: yuzutech/kroki
env:
KROKI_MERMAID_HOST: kroki-mermaid
ports:
- 8000:8000
kroki-mermaid:
image: yuzutech/kroki-mermaid

steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
5 changes: 1 addition & 4 deletions docs/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ content:
- url: https://github.com/smallrye/smallrye-health.git
branches: 3.0.x
start_path: doc
# uncomment after the docs are merged
# - url: https://github.com/smallrye/smallrye-reactive-messaging.git
# branches: main
# start_path: doc
ui:
bundle:
url: https://github.com/smallrye/smallrye-antora-ui/blob/main/build/ui-bundle.zip?raw=true
Expand All @@ -36,3 +32,4 @@ asciidoc:
attributes:
page-pagination: ''
kroki-fetch-diagram: true
kroki-server-url: http://localhost:8000

0 comments on commit 72c27d5

Please sign in to comment.