From 9898cea6c8a103d852959efb10b5629ffc9a3d15 Mon Sep 17 00:00:00 2001
From: steel <mael.acier@ensiie.fr>
Date: Sun, 29 Sep 2024 20:50:12 +0200
Subject: [PATCH] release

---
 .gitlab-ci.yml | 25 ++-----------------------
 1 file changed, 2 insertions(+), 23 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fabbb64..13905c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,5 @@
-include:
-  # include the component located in the current project from the current SHA
-  - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/my-component@$CI_COMMIT_SHA
-    inputs:
-      stage: build
-
-stages: [build, test, release]
-
-# Check if `component job of my-component` is added.
-# This example job could also test that the included component works as expected.
-# You can inspect data generated by the component, use GitLab API endpoints, or third-party tools.
-ensure-job-added:
-  stage: test
-  image: badouralix/curl-jq
-  # Replace "component job of my-component" with the job name in your component.
-  script:
-    - |
-      route="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs"
-      count=`curl --silent "$route" | jq 'map(select(.name | contains("deploy-dokku"))) | length'`
-      if [ "$count" != "1" ]; then
-        exit 1; else
-        echo "Component Job present"
-      fi
+stages:
+ - release
 
 # If the pipeline is for a new tag with a semantic version, and all previous jobs succeed,
 # create the release.
-- 
GitLab