lisätty puuttuvat scriptit
This commit is contained in:
@@ -15,6 +15,9 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
GITEA_API_URL: https://gitea.app.keskikuja.site
|
||||||
|
PAGES_HOST: ci-reports.helm-dev.keskikuja.site
|
||||||
|
GIT_PAGES_PUBLISH_URL: https://ci-reports.helm-dev.keskikuja.site
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
|
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
@@ -22,8 +25,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish reports
|
- name: Publish reports
|
||||||
run: bash scripts/publish.sh reports
|
run: bash scripts/publish.sh reports
|
||||||
|
|
||||||
- name: Set commit status
|
|
||||||
run: |
|
|
||||||
REPORT_URL="https://${PAGES_HOST}/${GITHUB_REPOSITORY}/reports/${GITHUB_SHA:0:8}/"
|
|
||||||
bash scripts/report-status.sh success "Reports published" "$REPORT_URL" ci-publish
|
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-engine:
|
feature:
|
||||||
|
if: github.ref != 'refs/heads/main'
|
||||||
|
uses: niko/gitea-ci-library/.gitea/workflows/ci-engine.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
main:
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/ci-engine.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti
|
uses: niko/gitea-ci-library/.gitea/workflows/ci-engine.yml@plan/0003-alkaa-käyttämään-itseään-commit-raportti
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
AGENTS.md
|
AGENTS.md
|
||||||
.ai
|
.ai
|
||||||
node_modules/
|
node_modules/
|
||||||
|
tmp/
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Vie raportit git-pagesiin + commit-status linkillä
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
REPORT_DIR="${1:-reports}"
|
||||||
|
PAGES_HOST="${PAGES_HOST:-ci-reports.helm-dev.keskikuja.site}"
|
||||||
|
|
||||||
|
REPORT_URL=$(bash "$(dirname $0)/publish-git-pages.sh" "$REPORT_DIR")
|
||||||
|
echo "Published: $REPORT_URL"
|
||||||
|
bash "$(dirname $0)/report-status.sh" success "Reports published" "$REPORT_URL" ci-report
|
||||||
Reference in New Issue
Block a user