From 9d35df6bfc7c0be7a01cace67092afe36e9f06e1 Mon Sep 17 00:00:00 2001 From: Jeroen Grusewski Date: Tue, 21 Jul 2026 11:14:34 +0000 Subject: [PATCH] fix(ci): use plain param substitution for image tag (this Argo doesn't eval {{=...}}) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- infra/argo/fxhnt-cockpit-workflowtemplate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/argo/fxhnt-cockpit-workflowtemplate.yaml b/infra/argo/fxhnt-cockpit-workflowtemplate.yaml index 16ca7a7..05ae08b 100644 --- a/infra/argo/fxhnt-cockpit-workflowtemplate.yaml +++ b/infra/argo/fxhnt-cockpit-workflowtemplate.yaml @@ -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