Loading ci-templates/default.yml +1 −3 Original line number Original line Diff line number Diff line Loading @@ -6,8 +6,6 @@ stages: - security - security .default: .default: variables: DEFAULT_VERSION: "1.0.0" before_script: before_script: - | - | if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then Loading @@ -15,5 +13,5 @@ stages: elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then export APP_VERSION="develop" export APP_VERSION="develop" else else export APP_VERSION=$DEFAULT_VERSION export APP_VERSION=$CI_COMMIT_REF_NAME fi fi Loading
ci-templates/default.yml +1 −3 Original line number Original line Diff line number Diff line Loading @@ -6,8 +6,6 @@ stages: - security - security .default: .default: variables: DEFAULT_VERSION: "1.0.0" before_script: before_script: - | - | if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then Loading @@ -15,5 +13,5 @@ stages: elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then export APP_VERSION="develop" export APP_VERSION="develop" else else export APP_VERSION=$DEFAULT_VERSION export APP_VERSION=$CI_COMMIT_REF_NAME fi fi