This commit is contained in:
@@ -63,15 +63,27 @@ jobs:
|
||||
env:
|
||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
- name: Serve Allure Report on runner
|
||||
- name: Deploy Allure report to allure-report branch
|
||||
run: |
|
||||
nohup python3 -m http.server 8080 --directory ci-reports/allure > http.log 2>&1 &
|
||||
sleep 3
|
||||
echo "--------------------------------------------------"
|
||||
echo "Allure report available at the address :"
|
||||
ip=$(ip route get 1 | awk '{for(i=1;i<=NF;i++) if ($i=="src") print $(i+1)}')
|
||||
echo "➡️ http://$ip:8080/index.html"
|
||||
echo "--------------------------------------------------"
|
||||
git config user.name "ci-bot"
|
||||
git config user.email "ci-bot@example.com"
|
||||
|
||||
# Copie les fichiers dans un dossier temporaire
|
||||
cp -r ci-reports/allure /tmp/allure-report
|
||||
|
||||
# Crée une branche orpheline propre
|
||||
git fetch origin
|
||||
git checkout --orphan allure-report
|
||||
git rm -rf . || true
|
||||
|
||||
# Copie les fichiers HTML
|
||||
cp -r /tmp/allure-report/* .
|
||||
git add .
|
||||
git commit -m "Deploy Allure report"
|
||||
git push --force https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:allure-report
|
||||
env:
|
||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
|
||||
- name: Cleanup Pixi cache
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user