forked from zonca/zonca.github.io-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (28 loc) · 1.05 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script>
function handleFormSubmit() {
var destinationUrl = 'https://hub.docker.com/add/automated-build/github/form/' + document.getElementById('github_id').value + '/' + document.getElementById('github_repo').value + '/?namespace=' + document.getElementById('namespace').value ;
window.location = destinationUrl;
return false;
}
</script>
</head>
<body>
<form onsubmit="return handleFormSubmit();">
<p>
<input type="text" id="github_id" />
<label for="github_id">Github ID where the repository is hosted, this could be an organization username</label>
</p>
<p>
<input type="text" id="github_repo" />
<label for="github_repo">Repository name on Github</label>
</p>
<p>
<input type="text" id="namespace" />
<label for="namespace">Name of the organization on Docker Hub (create it first)</label>
</p>
<input type="submit" />
</form>
</body>
</html>