b644e175 Andy McCall 19 days ago ↶
1
{% extends "base.html" %}
2
{% import "repo_tabs.html" as m %}
3
{% block title %}Deployments · {{ repo.owner }}/{{ repo.name }}{% endblock %}
4
{% block tabs %}{% call m::tabs(repo, "flow") %}{% endblock %}
5
{% block content %}
6
< div class = " head " > < h1 > Deployments < small > what each environment runs</ small > </ h1 > </ div >
7
{% if current.is_empty() %}
8
< p class = " empty " > Nothing deployed yet. A job deploys to an environment with < code > environment "prod"</ code > in < a href = " {{ repo.url }}/file/{{ repo.default_bookmark }}/.flow/pipeline.kdl" > .flow/pipeline.kdl</ a > ; its identity tokens name the environment once the job is approved.</ p >
9
{% else %}
10
< section class = " panel " >
11
< table class = " plain-table " >
12
< thead > < tr > < th > Environment</ th > < th > State</ th > < th > Run</ th > < th > Job</ th > < th > Approved by</ th > < th > When</ th > </ tr > </ thead >
13
< tbody > {% for d in current %}< tr > < td > < strong > {{ d.environment }}</ strong > </ td > < td > < a href = " {{ repo.url }}/tree/{{ d.state }}" > < code > {{ d.state|short }}</ code > </ a > {% if !d.bookmark.is_empty() %} < span class = " lbl lbl-bm " > {{ d.bookmark }}</ span > {% endif %}</ td > < td > < a href = " {{ repo.url }}/flow/{{ d.run_number }}" > #{{ d.run_number }}</ a > </ td > < td > {{ d.job }}</ td > < td > {% if d.approved_by.is_empty() %}< span class = " mute " > not gated</ span > {% else %}{{ d.approved_by }}{% endif %}</ td > < td > < time title = " {{ d.finished_ms|when_i }}" > {{ d.finished_ms|ago_i }}</ time > </ td > </ tr > {% endfor %}</ tbody >
14
</ table >
15
</ section >
16
< section class = " panel " >
17
< h2 > History</ h2 >
18
< ul class = " plain small " > {% for d in history %}< li > < strong > {{ d.environment }}</ strong > ← < a href = " {{ repo.url }}/flow/{{ d.run_number }}" > run #{{ d.run_number }}</ a > {{ d.job }} at < code > {{ d.state|short }}</ code > {% if !d.approved_by.is_empty() %}, approved by {{ d.approved_by }}{% endif %}, started by {{ d.actor }} · < time title = " {{ d.finished_ms|when_i }}" > {{ d.finished_ms|ago_i }}</ time > </ li > {% endfor %}</ ul >
19
</ section >
20
{% endif %}
21
{% endblock %}