diff --git a/Makefile b/Makefile index cccbc0a0..ce31097c 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ GO_LDFLAGS_STATIC=-ldflags "-w $(CTIMEVAR) -extldflags -static" # List the GOOS and GOARCH to build 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 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_TLS_VERIFY=true \ -e DOCKER_CERT_PATH=/etc/docker/ssl \ - -e DOCKER_API_VERSION=1.34 \ + -e DOCKER_API_VERSION \ $(DOCKER_IMAGE) \ make test diff --git a/server/handlers.go b/server/handlers.go index d42e0bc3..2999de15 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -118,9 +118,12 @@ func (rc *registryController) tagsHandler(w http.ResponseWriter, r *http.Request return } - result := AnalysisResult{} - result.RegistryDomain = rc.reg.Domain - result.Name = repo + result := AnalysisResult{ + RegistryDomain: rc.reg.Domain, + LastUpdated: time.Now().Local().Format(time.RFC1123), + Name: repo, + } + for _, tag := range tags { // get the manifest m1, err := rc.reg.ManifestV1(repo, tag) diff --git a/server/templates/tags.html b/server/templates/tags.html index 72f556d4..7ba91ec2 100644 --- a/server/templates/tags.html +++ b/server/templates/tags.html @@ -49,6 +49,7 @@