fix(ci): use plain param substitution for image tag (this Argo doesn't eval {{=...}})

The {{=sprig.trunc(...)}} expression wasn't evaluated by this Argo (v4.0.6) —
Kaniko received it literally and rejected it as an invalid tag. Use the plain
{{workflow.parameters.commit-sha}} substitution (which works everywhere else
in this template); the full 40-char sha is a valid Docker tag, no trunc needed.
This commit is contained in:
2026-07-21 11:14:34 +00:00
parent da28c049f7
commit 9d35df6bfc

View File

@@ -129,7 +129,7 @@ spec:
- --context=/workspace/src
- --dockerfile=/workspace/src/infra/docker/fxhnt.Dockerfile
- --destination=rg.fr-par.scw.cloud/bizworx/fxhnt-cockpit:latest
- --destination=rg.fr-par.scw.cloud/bizworx/fxhnt-cockpit:{{=sprig.trunc(7, workflow.parameters.commit-sha)}}
- --destination=rg.fr-par.scw.cloud/bizworx/fxhnt-cockpit:{{workflow.parameters.commit-sha}}
- --cache=true
- --cache-repo=rg.fr-par.scw.cloud/bizworx/cache
- --snapshot-mode=redo