fix: image tag template formatting in docs

This commit is contained in:
Pasha Sviderski
2026-02-24 16:42:55 +10:00
parent f8d1945544
commit 7bfaf31138
@@ -14,7 +14,7 @@ Git repository state. You can customise the image name and tag format for the bu
If you **don't specify** an `image` attribute for a service with a `build` section, Uncloud uses the following Go
template for tagging the built image:
```go
```
{{.Project}}/{{.Service}}:{{if .Git.IsRepo}}{{gitdate "2006-01-02-150405"}}.{{gitsha 7}}{{if .Git.IsDirty}}.dirty{{end}}{{else}}{{date "2006-01-02-150405"}}{{end}}
```
@@ -92,8 +92,7 @@ image: myapp:{{date "20060102-150405" "Local"}} # → myapp:20251031-220651
### Date format reference
Go uses a reference time (`Mon Jan 2 15:04:05 MST 2006`) for formatting. Replace reference components with desired
format:
Go uses a reference time `Mon Jan 2 15:04:05 MST 2006` for formatting. Replace reference components with desired format:
| Component | Reference | Example |
|-----------|-----------|-------------|