From ed4650be3f8119eae9e8b823f60af2edfa2bdbf5 Mon Sep 17 00:00:00 2001 From: Oleh Boreiko1 Date: Thu, 31 Aug 2023 09:20:26 +0000 Subject: [PATCH] [EDP-DDM-27935] Added setting of demo-registry's vars for github publishing Change-Id: I5e84c39a74263a0ee841a9e91a86910666df8511 --- .github/scripts/update-demo-registry-vars.sh | 5 +++++ .github/workflows/antora-build.yml | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .github/scripts/update-demo-registry-vars.sh 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: