Loading ci-templates/build.yml +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: Loading @@ -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 Loading ci-templates/build_unprotected.yml +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: Loading @@ -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 Loading ci-templates/default.yml +13 −1 Original line number Diff line number Diff line Loading @@ -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" compose/deploy.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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 } Loading kubernetes/helm/openslice/Chart.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
ci-templates/build.yml +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: Loading @@ -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 Loading
ci-templates/build_unprotected.yml +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: Loading @@ -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 Loading
ci-templates/default.yml +13 −1 Original line number Diff line number Diff line Loading @@ -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"
compose/deploy.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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 } Loading
kubernetes/helm/openslice/Chart.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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