add push task and disable proxy for @Configuration

This commit is contained in:
Antoine 2020-09-10 23:02:49 +02:00
parent a38a324ad2
commit 6e7a6055b4
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
4 changed files with 8 additions and 8 deletions

View File

@ -30,6 +30,9 @@ docker-graal-build:
docker-graal-release:
docker tag docker.registry:5000/wikiproject-native:latest docker.registry:5000/wikiproject-native:$(NATIVE_VERSION)
docker-graal-push:
docker push docker.registry:5000/wikiproject-native:$(NATIVE_VERSION)
docker-graal-run: RUN_PORT=8080
docker-graal-run:
echo "$(firstword $(MAKECMDGOALS))"

View File

@ -52,8 +52,8 @@ public class ApiVersionRequestMappingHandlerMapping extends RequestMappingHandle
RequestMappingInfo requestMappingInfo = new RequestMappingInfo(
new PatternsRequestCondition(
new String[]{annotationApiPrefix.value()},
this.getUrlPathHelper(), this.getPathMatcher(),
false
false,
this.getPathMatcher()
),
new RequestMethodsRequestCondition(),
new ParamsRequestCondition(),
@ -76,11 +76,7 @@ public class ApiVersionRequestMappingHandlerMapping extends RequestMappingHandle
}
return new RequestMappingInfo(
new PatternsRequestCondition(
patterns, this.getUrlPathHelper(), this.getPathMatcher(),
false
// , this.useTrailingSlashMatch(), this.getFileExtensions()
),
new PatternsRequestCondition(patterns, false, this.getPathMatcher()),
new RequestMethodsRequestCondition(),
new ParamsRequestCondition(),
new HeadersRequestCondition(),

View File

@ -12,7 +12,7 @@ import tk.antoine_roux.wiki.Constant;
/**
* spring web configuration
*/
@Configuration
@Configuration(proxyBeanMethods = false)
public class WebConfiguration extends WebMvcConfigurationSupport {
@Bean

View File

@ -12,4 +12,5 @@ logging.level.root=INFO
management.server.port=8080
info.name=gitlab-runner-gateway
info.more.detail=This is a REST API use to gateway gitlab runner call to gitlab instance
management.endpoints.web.exposure.include=mappings