Skip to content
Snippets Groups Projects
Commit 289c2e92 authored by Martin Weise's avatar Martin Weise
Browse files

Merge branch 'master' into release-1.6

parents 894fac97 58bd97e9
Branches
Tags
No related merge requests found
...@@ -24,7 +24,7 @@ info: ...@@ -24,7 +24,7 @@ info:
name: Apache 2.0 name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0 url: https://www.apache.org/licenses/LICENSE-2.0
title: DBRepo REST API title: DBRepo REST API
version: 1.6.2 version: 1.6.3
openapi: 3.1.0 openapi: 3.1.0
servers: servers:
- description: Test Instance - description: Test Instance
......
...@@ -124,11 +124,15 @@ lint-open-api-version: ...@@ -124,11 +124,15 @@ lint-open-api-version:
VERSION: 4.45.1 VERSION: 4.45.1
BINARY: yq_linux_amd64 BINARY: yq_linux_amd64
before_script: before_script:
- echo "${DOC_VERSION}" > ./doc-version.txt
- echo "${APP_VERSION}" > ./app-version.txt
- 'apk --no-cache add bash wget' - 'apk --no-cache add bash wget'
- 'wget https://github.com/mikefarah/yq/releases/download/v${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq' - 'wget https://github.com/mikefarah/yq/releases/download/v${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq'
script: script:
- yq '.externalDocs.url' ./.docs/.openapi/api.base.yaml | grep "${DOC_VERSION}" - yq '.externalDocs.url' ./.docs/.openapi/api.base.yaml | grep "${DOC_VERSION}" > ./openapi-doc-version.txt
- yq '.info.version' ./.docs/.openapi/api.base.yaml | grep "${DOC_VERSION}" - diff ./openapi-doc-version.txt ./doc-version.txt
- yq '.info.version' ./.docs/.openapi/api.base.yaml | grep "${APP_VERSION}" > ./openapi-app-version.txt
- diff ./openapi-app-version.txt ./app-version.txt
build-metadata-service: build-metadata-service:
image: maven:3-openjdk-${JAVA_VERSION} image: maven:3-openjdk-${JAVA_VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment