Commit 9d0cb93a authored by Nikos Psaromanolakis's avatar Nikos Psaromanolakis
Browse files

fix: proper version format

parent 26832c3b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ pkg-manager:
    repository: 
      labs.etsi.org:5050/osl/hypo/code/org.etsi.osl.hypo.core/pkg-manager.helm/pkg-manager
    pullPolicy: Always
    tag: "1.0.1"
    tag: "latest"

  imagePullSecrets:
  - name: regcred
+3 −4
Original line number Diff line number Diff line
@@ -32,15 +32,14 @@ def update_yaml_values(yaml_file, temp_file, microservices, image_name, new_tag)

def increment_ver(current_version):
    """
    Return the current version in YYYY.M.DD format.
    Example: 2025.9.01, 2025.9.15
    Return the current version in YYYY.M format.
    Example: 2025.9, 2025.10
    """
    now = datetime.now()
    year = now.year
    month = now.month
    day = now.day

    return f"{year}.{month}.{day:02d}"
    return f"{year}.{month}"


def update_chart(chart_file):
+3 −4
Original line number Diff line number Diff line
@@ -33,15 +33,14 @@ def update_yaml_values(yaml_file, temp_file, microservices, image_name, new_tag)

def increment_ver(current_version):
    """
    Return the current version in YYYY.M.DD format.
    Example: 2025.9.01, 2025.9.15
    Return the current version in YYYY.M format.
    Example: 2025.9, 2025.10
    """
    now = datetime.now()
    year = now.year
    month = now.month
    day = now.day

    return f"{year}.{month}.{day:02d}"
    return f"{year}.{month}"


def update_chart(chart_file):