Commit 035a4de0 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

Merge branch 'develop' into 'cridge-features'

Merge develop into side branch

See merge request !42
parents e3326188 99f727cd
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
.maven_build:
  extends: .default
  stage: build
  image: maven:3.9.5-ibm-semeru-17-focal
  image: maven:3.9.9-ibm-semeru-17-focal
  script:
    - mvn deploy -s ci_settings.xml -Dversion=$APP_VERSION
  artifacts:
@@ -26,7 +26,7 @@
.angular_build:
  extends: .default
  stage: build
  image: trion/ng-cli:14.2.6
  image: trion/ng-cli:13.3.7
  script:
    - |
      if [ ! -f  "./src/assets/config/theming.scss" ]; then
+2 −2
Original line number Diff line number Diff line
.maven_build:
  extends: .default
  stage: build
  image: maven:3.9.5-ibm-semeru-17-focal
  image: maven:3.9.9-ibm-semeru-17-focal
  script:
    - mvn install -s ci_settings.xml
  artifacts:
@@ -20,7 +20,7 @@
.angular_build:
  extends: .default
  stage: build
  image: trion/ng-cli:14.2.6
  image: trion/ng-cli:13.3.7
  script:
    - |
      if [ ! -f  "./src/assets/config/theming.scss" ]; then
+13 −1
Original line number Diff line number Diff line
@@ -7,11 +7,23 @@ stages:

.default:
  before_script:
    - set -e
    - |
      if [ "$CI_COMMIT_REF_PROTECTED" = true ] && [ -n "$CI_COMMIT_TAG" ]; then
        export APP_VERSION=$CI_COMMIT_TAG
      elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then
        export APP_VERSION="develop"
      else
        export APP_VERSION=$CI_COMMIT_REF_NAME
        # Replace '/' with '-' and check for any invalid characters
        APP_VERSION=$(echo "$CI_COMMIT_REF_NAME" | sed 's|/|-|g')
        
        # Check for invalid characters (only allow lowercase letters, digits, '_', '.', '-')
        if echo "$APP_VERSION" | grep -q '[^a-zA-Z0-9._-]'; then
          echo "Error: Branch name contains invalid characters for Docker tags. Only a-z, 0-9, '_', '.', and '-' are allowed."
          exit 1
        fi

        # Convert to lowercase
        export APP_VERSION=$(echo "$APP_VERSION" | tr 'A-Z' 'a-z')
      fi
    - echo "APP_VERSION set to $APP_VERSION"
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ updaterepo(){

        # Build maven project if .pom file is present
        if [ -f  "./pom.xml" ]; then
            docker run -it --rm -v "/home/ubuntu/.m2":/root/.m2 -v "$(pwd)":/opt/maven -w /opt/maven maven:3.9.5-ibm-semeru-17-focal mvn clean verify -DskipTests
            docker run -it --rm -v "/home/ubuntu/.m2":/root/.m2 -v "$(pwd)":/opt/maven -w /opt/maven maven:3.9.9-ibm-semeru-17-focal mvn clean verify -DskipTests
        fi
}

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 2.0.0-SNAPSHOT

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Loading