Skip to content

Commit

Permalink
[EDP-DDM-27935] Added setting of demo-registry's vars for github publ…
Browse files Browse the repository at this point in the history
…ishing

Change-Id: I5e84c39a74263a0ee841a9e91a86910666df8511
  • Loading branch information
Oleh Boreiko1 committed Sep 18, 2023
1 parent c4f670b commit ed4650b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/update-demo-registry-vars.sh
Original file line number Diff line number Diff line change
@@ -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" {} \;
3 changes: 3 additions & 0 deletions .github/workflows/antora-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed4650b

Please sign in to comment.