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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user