diff --git a/.gitea/workflows/ci-engine.yml b/.gitea/workflows/ci-engine.yml index ca18fb5..f0e39ae 100644 --- a/.gitea/workflows/ci-engine.yml +++ b/.gitea/workflows/ci-engine.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest env: GITEA_API_URL: https://gitea.app.keskikuja.site - PAGES_HOST: pages.helm-dev.keskikuja.site - GIT_PAGES_PUBLISH_URL: https://pages.helm-dev.keskikuja.site + PAGES_HOST: ci-reports.helm-dev.keskikuja.site + GIT_PAGES_PUBLISH_URL: https://ci-reports.helm-dev.keskikuja.site GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} steps: @@ -34,9 +34,9 @@ jobs: - name: Publish report to git-pages id: publish run: | - REPORT_URL=$(bash scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}") - echo "report_url=${REPORT_URL}" >> "${GITHUB_OUTPUT}" - echo "Published: ${REPORT_URL}" + REPORT_BASE=$(bash scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}") + echo "report_url=${REPORT_BASE}/index.html" >> "${GITHUB_OUTPUT}" + echo "Published: ${REPORT_BASE}/index.html" - name: Set commit status with report link run: | diff --git a/scripts/publish-git-pages.sh b/scripts/publish-git-pages.sh index 45a4df4..2e3fca3 100755 --- a/scripts/publish-git-pages.sh +++ b/scripts/publish-git-pages.sh @@ -20,7 +20,7 @@ REPO_SLUG="${GITHUB_REPOSITORY:-}" OWNER="${REPO_SLUG%%/*}" REPO="${REPO_SLUG##*/}" SHA8="${GITHUB_SHA:0:8}" -REPORT_URL="https://${PAGES_HOST}/${OWNER}/${REPO}/reports/${SHA8}/index.html" +REPORT_BASE="https://${PAGES_HOST}/${OWNER}/${REPO}/reports/${SHA8}" PUBLISH_BASE="${GIT_PAGES_PUBLISH_URL%/}" PUBLISH_SITE_URL="${PUBLISH_BASE}/" @@ -68,4 +68,4 @@ case "$HTTP_CODE" in ;; esac -echo "$REPORT_URL" +echo "$REPORT_BASE"