From 5e15dfc407398f4821fdb95bd7a779336a11ad3a Mon Sep 17 00:00:00 2001 From: Steffen Graber Date: Thu, 21 Sep 2023 09:37:44 +0000 Subject: [PATCH] Fix pipeline workflow --- ci-templates/000_3.5.gitlab-ci.yml | 6 ++++-- ci-templates/000_3.6.gitlab-ci.yml | 2 -- ci-templates/000_dev.gitlab-ci.yml | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci-templates/000_3.5.gitlab-ci.yml b/ci-templates/000_3.5.gitlab-ci.yml index 8baa241..74a48b9 100644 --- a/ci-templates/000_3.5.gitlab-ci.yml +++ b/ci-templates/000_3.5.gitlab-ci.yml @@ -20,6 +20,8 @@ Build_35: Test_35: stage: test needs: ["Build_35"] + rules: + - when: never script: - docker pull $DOCKER_REGISTRY_IMAGE:3.5.$CI_PIPELINE_ID - docker stop $(docker ps -q) 2>/dev/null || true @@ -35,6 +37,8 @@ Test_35: Deploy_35: stage: deploy needs: ["Test_35"] + rules: + - when: never script: - docker pull $DOCKER_REGISTRY_IMAGE:3.5.$CI_PIPELINE_ID - docker tag $DOCKER_REGISTRY_IMAGE:3.5.$CI_PIPELINE_ID $DOCKER_REGISTRY_IMAGE:3.5 @@ -43,7 +47,5 @@ Deploy_35: - docker tag $DOCKER_REGISTRY_IMAGE:3.5 nest/nest-simulator:3.5 - docker push nest/nest-simulator:3.5 - docker logout $DOCKERHUB_REGISTRY - only: - - master tags: - shell-runner diff --git a/ci-templates/000_3.6.gitlab-ci.yml b/ci-templates/000_3.6.gitlab-ci.yml index 1985bba..2f78b82 100644 --- a/ci-templates/000_3.6.gitlab-ci.yml +++ b/ci-templates/000_3.6.gitlab-ci.yml @@ -27,7 +27,5 @@ Deploy_36: - echo -n $DOCKERHUB_REGISTRY_TOKEN | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin - docker push nest/nest-simulator:3.6 - docker logout $DOCKERHUB_REGISTRY - only: - - master tags: - shell-runner diff --git a/ci-templates/000_dev.gitlab-ci.yml b/ci-templates/000_dev.gitlab-ci.yml index 8d2b3ab..dfe5415 100644 --- a/ci-templates/000_dev.gitlab-ci.yml +++ b/ci-templates/000_dev.gitlab-ci.yml @@ -27,7 +27,5 @@ Deploy_Dev: - echo -n $DOCKERHUB_REGISTRY_TOKEN | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin - docker push nest/nest-simulator:dev - docker logout $DOCKERHUB_REGISTRY - only: - - master tags: - shell-runner