From a9199dc20d87c497eb9c4104e546423fa2964781 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 21 Jun 2021 11:41:45 +0200 Subject: [PATCH] Fix Gitlab-ci Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c731a543..9743e3a08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -214,7 +214,7 @@ build-docker-master: build-docker-tag: <<: *docker - rules: + rules: &tag-rules - if: '$CI_PROJECT_NAMESPACE != "framasoft"' when: never - if: $CI_COMMIT_TAG @@ -253,16 +253,7 @@ package-app-dev: release-upload: stage: upload image: framasoft/yakforms-assets-deploy:latest - rules: - - if: '$CI_PROJECT_NAMESPACE != "framasoft"' - when: never - - if: $CI_COMMIT_TAG - only: - variables: - - $CI_COMMIT_TAG - - $DEPLOYEMENT_KEY - - $DEPLOYEMENT_USER - - $DEPLOYEMENT_HOST + rules: *tag-rules script: - APP_VERSION="${CI_COMMIT_TAG}" - APP_ASSET="${CI_PROJECT_NAME}_${APP_VERSION}_${ARCH}.tar.gz" @@ -283,10 +274,7 @@ release-upload: release-create: stage: deploy image: registry.gitlab.com/gitlab-org/release-cli:latest - rules: - - if: '$CI_PROJECT_NAMESPACE != "framasoft"' - when: never - - if: $CI_COMMIT_TAG + rules: *tag-rules before_script: - apk --no-cache add awk sed grep script: |