{{define "content"}}

{{.Service.DisplayName}}

{{if .Error}}

{{.Error}}

{{end}} {{if .Service.ActualDigest}}{{end}} {{if .Service.DesiredRef}}{{end}} {{if .Service.AvailableRef}}{{end}} {{if .NewerTag}}{{end}} {{.Polling}} {{if .ConfigFiles}}{{end}}
Kind{{.Service.Kind}}
Agent{{if .Service.AgentName}}{{.Service.AgentName}}{{else}}Swarm{{end}}
Image{{shortRef .Service.ActualRef}}
Digest{{.Service.ActualDigest}}
Status{{.Service.Status}}
Desired image{{shortRef .Service.DesiredRef}}
Available{{.Service.AvailableRef}} via {{.Service.AvailableSource}}{{with .Service.AvailableAt}}, {{.Format "2006-01-02 15:04"}}{{end}}
Newer tag{{.Service.NewerRef}} from the registry's tag list{{with .Service.NewerAt}}, {{.Format "2006-01-02 15:04"}}{{end}}; deploy it from Versions
Mode{{.Service.UpdateMode}}
Polling
Config files{{range .ConfigFiles}}{{.}}
{{end}}
{{if .Reason}}

Update unavailable: {{.Reason}}.

{{else}}

Pulls the current tag again and redeploys the service.

{{end}}

{{if .PollBlocked}}Check unavailable: {{.PollBlocked}}.{{else}}Asks the registry now instead of waiting for the next poll.{{end}}

{{if eq .Service.UpdateMode "auto"}}

The webhook will only mark new versions as available.

{{else}}

{{if .AutoBlocked}}Auto unavailable: {{.AutoBlocked}}.{{else}}The webhook will update this service as soon as CI pushes a new image.{{end}}

{{end}}

Versions

{{if eq .Service.UpdateMode "auto"}}

This service is in auto mode: a version picked here is replaced again when a newer version is announced or found by polling.

{{end}} {{range .Versions}} {{/* AutoBlocked is the same check that decides whether the service can be updated with an explicit ref, which is what a pick is. */}} {{else}} {{end}}
VersionSeen viaFirst seen
{{shortRef .Ref}}{{if .Running}} running{{end}}{{if not .Tag}} the service will follow no tag afterwards{{end}} {{.Source}} {{.FirstSeenAt.Format "2006-01-02 15:04"}}{{if not $.AutoBlocked}}
{{end}}
No versions seen yet.

Update history

{{template "history" .}}
{{end}} {{define "history"}} {{range .Jobs}} {{else}} {{end}}
JobStatusFrom → toRequested byCreatedDuration
#{{.ID}} {{.Status}} {{shortRef .FromRef}} → {{shortRef .ToRef}} {{.RequestedBy}} {{.CreatedAt.Format "2006-01-02 15:04"}} {{duration .}}
No updates yet.
{{end}}