From 2ad5a09b8ce8da0a4be0945827ceecbfa36c5056 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Sat, 28 Sep 2024 11:57:32 +0200
Subject: [PATCH] Fixed path

---
 .docs/images/pipeline.svg | 24 ++++++++++++++++++++++++
 .docs/index.md            |  2 +-
 .gitlab-ci.yml            |  2 +-
 3 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100644 .docs/images/pipeline.svg

diff --git a/.docs/images/pipeline.svg b/.docs/images/pipeline.svg
new file mode 100644
index 0000000000..17f9499891
--- /dev/null
+++ b/.docs/images/pipeline.svg
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="116" height="20">
+    <linearGradient id="b" x2="0" y2="100%">
+        <stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
+        <stop offset="1" stop-opacity=".1"/>
+    </linearGradient>
+    <mask id="anybadge_1">
+        <rect width="116" height="20" rx="3" fill="#fff"/>
+    </mask>
+    <g mask="url(#anybadge_1)">
+        <path fill="#555" d="M0 0h57v20H0z"/>
+        <path fill="#A9A9A9" d="M57 0h59v20H57z"/>
+        <path fill="url(#b)" d="M0 0h116v20H0z"/>
+    </g>
+    <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
+        <text x="29.5" y="15" fill="#010101" fill-opacity=".3">pipeline</text>
+        <text x="28.5" y="14">pipeline</text>
+    </g>
+    <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
+        <text x="87.5" y="15" fill="#010101" fill-opacity=".3">unknown</text>
+        <text x="86.5" y="14">unknown</text>
+    </g>
+</svg>
+
diff --git a/.docs/index.md b/.docs/index.md
index 9743a1a0a4..ab2e9369eb 100644
--- a/.docs/index.md
+++ b/.docs/index.md
@@ -2,7 +2,7 @@
 author: Martin Weise
 ---
 
-[![CI/CD Pipeline](../images/pipeline.svg)](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services){ tabindex=-1 }
+[![CI/CD Pipeline](./images/pipeline.svg)](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services){ tabindex=-1 }
 [![GitLab Release](https://img.shields.io/gitlab/v/release/fair-data-austria-db-repository%2Ffda-services?gitlab_url=https%3A%2F%2Fgitlab.phaidra.org&display_name=release&style=flat&cacheSeconds=3600)](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services){ tabindex=-1 }
 [![Image Pulls](https://img.shields.io/docker/pulls/dbrepo/data-service?style=flat&cacheSeconds=3600)](https://hub.docker.com/u/dbrepo){ tabindex=-1 }
 [![GitLab License](https://img.shields.io/gitlab/license/fair-data-austria-db-repository%2Ffda-services?gitlab_url=https%3A%2F%2Fgitlab.phaidra.org%2F&style=flat&cacheSeconds=3600)](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services){ tabindex=-1 }
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cea36d850..070e7d016d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -441,7 +441,7 @@ release-docs:
     - "cp .docs/.swagger/custom.css ./final/${APP_VERSION}/rest/custom.css" # swagger
     - "cp -r ./site/* ./final/${APP_VERSION}" # mkdocs
     - "cp .docker/dist.tar.gz ./final/${APP_VERSION}/dist.tar.gz" # dist
-    - "anybadge --label pipeline --value $(curl -fsSL -H 'PRIVATE-TOKEN: ${CI_TOKEN}' 'https://gitlab.phaidra.org/api/v4/projects/450/pipelines?ref=${CI_COMMIT_BRANCH}' | jq '[.[]|select(.)][0].status')  --file '/tmp/pipeline.svg' failed=red success=green"
+    - "anybadge --label pipeline --value $(curl -fsSL -H 'PRIVATE-TOKEN: ${CI_TOKEN}' 'https://gitlab.phaidra.org/api/v4/projects/450/pipelines?ref=${CI_COMMIT_BRANCH}' | jq '[.[]|select(.)][0].status') failed=red success=green > /tmp/pipeline.svg"
     - "cp /tmp/pipeline.svg ./final/${APP_VERSION}/images/pipeline.svg" # badges
     - eval $(ssh-agent -s)
     - "mkdir -p /root/.ssh"
-- 
GitLab