Skip to content
default.yml 372 B
Newer Older
stages:
  - .pre
  - build
  - test
  - post
  - security

.default:
  before_script:
    - |
      if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then
        export APP_VERSION=$CI_COMMIT_TAG
      elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
        export APP_VERSION="develop"
        export APP_VERSION=$CI_COMMIT_REF_NAME