From da27361b2fea66b40232de6593fcfd47de0b473c Mon Sep 17 00:00:00 2001
From: Matthias Bodenbenner <matthias.bodenbenner@wzl-iqs.rwth-aachen.de>
Date: Thu, 14 Nov 2024 14:38:11 +0100
Subject: [PATCH] fixed pipeline ?

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0606cf9..da96b02 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,6 @@ variables:
 
 stages:
   - build
-  - push
   - deploy
 
 Build Container:
@@ -16,25 +15,16 @@ Build Container:
   script:
     - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
     - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH .
-
-Push Container:
-  image: docker:20.10
-  stage: push
-  only:
-    - main
-  tags:
-    - frodo
-  script:
-    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
     - docker push $CI_REGISTRY/$CI_PROJECT_PATH:latest
 
+
 Deploy Container:
   stage: deploy
   only:
     - main
   tags:
     - sam
-  needs: ["Push Container"]
+  needs: ["Build Container"]
   script:
     - cp ./docker-compose.yml $app_path/docker-compose.yml
     - cp ./default.conf $app_path/default.conf
-- 
GitLab