Skip to content

Integrate gitlab-ci/cleaos-694-inconsisten-artifact-names-if-build-pass-midnight

Commit: clea-os/infrastructure/gitlab-ci@e53d4dd4

[CICD][DEPLOY] Refactor DEPLOY_DATE calculation

DEPLOY_DATE is used in artifact naming. Previously, it was derived using the local date command, which could lead to inconsistencies. Specifically, if a pipeline started just before midnight and some jobs ran after midnight, artifacts from the same release pipeline could end up with different DEPLOY_DATE values.

This commit updates the DEPLOY_DATE calculation to use the CI_PIPELINE_CREATED_AT value instead, ensuring that all artifacts share a consistent date based on the pipeline's start time, rather than each individual job's execution time.

Merge request reports

Loading