mirror of
https://github.com/genuinetools/reg.git
synced 2024-06-30 11:04:16 -04:00
add last updated to tags page as well
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
d57e019b47
commit
ad6b4d161b
4
Makefile
4
Makefile
|
@ -26,7 +26,7 @@ GO_LDFLAGS_STATIC=-ldflags "-w $(CTIMEVAR) -extldflags -static"
|
||||||
# List the GOOS and GOARCH to build
|
# List the GOOS and GOARCH to build
|
||||||
GOOSARCHES = darwin/amd64 darwin/386 linux/arm linux/arm64 linux/amd64 linux/386 windows/amd64 windows/386
|
GOOSARCHES = darwin/amd64 darwin/386 linux/arm linux/arm64 linux/amd64 linux/386 windows/amd64 windows/386
|
||||||
|
|
||||||
all: clean build fmt lint test staticcheck vet install ## Runs a clean, build, fmt, lint, test, vet and install
|
all: clean build fmt lint test staticcheck vet install ## Runs a clean, build, fmt, lint, test, staticcheck, vet and install
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(NAME) ## Builds a dynamic executable or package
|
build: $(NAME) ## Builds a dynamic executable or package
|
||||||
|
@ -173,7 +173,7 @@ dtest: ## Run the tests in a docker container
|
||||||
-e DOCKER_HOST=tcp://127.0.0.1:2375 \
|
-e DOCKER_HOST=tcp://127.0.0.1:2375 \
|
||||||
-e DOCKER_TLS_VERIFY=true \
|
-e DOCKER_TLS_VERIFY=true \
|
||||||
-e DOCKER_CERT_PATH=/etc/docker/ssl \
|
-e DOCKER_CERT_PATH=/etc/docker/ssl \
|
||||||
-e DOCKER_API_VERSION=1.34 \
|
-e DOCKER_API_VERSION \
|
||||||
$(DOCKER_IMAGE) \
|
$(DOCKER_IMAGE) \
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|
|
@ -118,9 +118,12 @@ func (rc *registryController) tagsHandler(w http.ResponseWriter, r *http.Request
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result := AnalysisResult{}
|
result := AnalysisResult{
|
||||||
result.RegistryDomain = rc.reg.Domain
|
RegistryDomain: rc.reg.Domain,
|
||||||
result.Name = repo
|
LastUpdated: time.Now().Local().Format(time.RFC1123),
|
||||||
|
Name: repo,
|
||||||
|
}
|
||||||
|
|
||||||
for _, tag := range tags {
|
for _, tag := range tags {
|
||||||
// get the manifest
|
// get the manifest
|
||||||
m1, err := rc.reg.ManifestV1(repo, tag)
|
m1, err := rc.reg.ManifestV1(repo, tag)
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<a href="https://twitter.com/jessfraz">@jessfraz</a>
|
<a href="https://twitter.com/jessfraz">@jessfraz</a>
|
||||||
|
<p>Last Updated: {{ .LastUpdated }}</p>
|
||||||
</div><!--/.footer-->
|
</div><!--/.footer-->
|
||||||
<script src="/static/js/scripts.js"></script>
|
<script src="/static/js/scripts.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in a new issue