Commit b1605865 authored by Nikos Psaromanolakis's avatar Nikos Psaromanolakis
Browse files

fix: version format

parent 10d2f59f
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
+4 −3
Original line number Diff line number Diff line
@@ -32,14 +32,15 @@ def update_yaml_values(yaml_file, temp_file, microservices, image_name, new_tag)

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

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


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

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

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


def update_chart(chart_file):