Skip to content
Snippets Groups Projects
Commit fa42b8d3 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

added default app version

parent 6ddb3066
No related branches found
No related tags found
3 merge requests!34Merging develop (merged from 2024Q2_RC) into main creating for 2024Q2 Release,!33Merging 2024Q2_RC into main creating for 2024Q2 Release,!20Resolve "Update gitlab CI file to use inherited jobs from main"
Pipeline #3801 passed
...@@ -7,12 +7,16 @@ stages: ...@@ -7,12 +7,16 @@ stages:
# Default configuration for all jobs # Default configuration for all jobs
.default: .default:
variables:
DEFAULT_VERSION: "1.2.0-SNAPSHOT"
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
export APP_VERSION=$CI_COMMIT_TAG export APP_VERSION=$CI_COMMIT_TAG
elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
export APP_VERSION="develop" export APP_VERSION="develop"
else
export APP_VERSION=$DEFAULT_VERSION
fi fi
# Configuration for jobs on protected branches # Configuration for jobs on protected branches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment