diff --git a/.github/scripts/update-demo-registry-vars.sh b/.github/scripts/update-demo-registry-vars.sh new file mode 100644 index 0000000000..2e45336dc8 --- /dev/null +++ b/.github/scripts/update-demo-registry-vars.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +find ./github-pages -name '*.html' -exec sed -i "s/{{{registry-name}}}/demo-registry/g" {} \; +find ./github-pages -name '*.html' -exec sed -i "s/{{{cluster-name}}}/cluster-name/g" {} \; +find ./github-pages -name '*.html' -exec sed -i "s/{{{dns-wildcard}}}/domain.com/g" {} \; diff --git a/.github/workflows/antora-build.yml b/.github/workflows/antora-build.yml index 8a87b0578d..cd672e7a8c 100644 --- a/.github/workflows/antora-build.yml +++ b/.github/workflows/antora-build.yml @@ -20,6 +20,9 @@ jobs: run: npx antora site-en-github.yaml - name: Generate Site UA run: npx antora site-ua-github.yaml + - name: Run update vars script for demo registry's URLs + run: ./.github/scripts/update-demo-registry-vars.sh + shell: bash - name: Publish to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: