Checkpointing work plugging projects through to the home page

This commit is contained in:
R Tyler Croy 2023-01-29 20:52:51 -08:00
parent f7a3dc3e8d
commit 641c774788
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
3 changed files with 15 additions and 2 deletions

View File

@ -2,8 +2,20 @@
agents:
'local':
url: 'http://localhost:9000'
'Duplicate Local':
url: 'http://localhost:9000'
projects:
'janky':
description: |
Self-hosted Janky project
filename: 'ci.janky.yml'
scm:
github:
owner: 'rtyler'
repo: 'janky'
ref: 'main'
'janky with spaces':
description: A test configuration with spaces in the name
filename: 'ci.janky.yml'
scm:
github:

View File

@ -80,9 +80,10 @@ enum Scm {
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
struct Project {
description: String,
filename: String,
#[serde(with = "serde_yaml::with::singleton_map")]
scm: Scm,
filename: String,
}
/*

View File

@ -49,7 +49,7 @@
<a class="text-reset" href="/projects/{{@key}}"><strong>{{@key}}</strong></a>
</td>
<td>
No Description
{{this.description}}
</td>
<td>
<form method="POST" action="/api/v1/projects/{{@key}}">