Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • dariah-de/textgridrep/repdav
1 result
Show changes
Commits on Source (4)
...@@ -56,10 +56,9 @@ build container image: ...@@ -56,10 +56,9 @@ build container image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
script: script:
# always succeed and don't print error message
- tag=$(git tag --contains $CI_COMMIT_SHORT_SHA 2>&1) || true
# use tag for version if not empty; else commit sha # use tag for version if not empty; else commit sha
- "[[ -n $tag ]] && export version=$tag || export version=$CI_COMMIT_SHORT_SHA" - "[[ -n ${CI_COMMIT_TAG} ]] && export version=${CI_COMMIT_TAG} || export version=${CI_COMMIT_SHORT_SHA}"
- echo $version
- mkdir -p /kaniko/.docker - mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64 | tr -d '\n')\"},\"$harbor_registry\":{\"auth\":\"$HARBOR_ROBOT_TOKEN64\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64 | tr -d '\n')\"},\"$harbor_registry\":{\"auth\":\"$HARBOR_ROBOT_TOKEN64\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
...@@ -78,20 +77,33 @@ build container image: ...@@ -78,20 +77,33 @@ build container image:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
generate pipfile:
stage: build
image: docker.io/python:3.8-alpine
before_script:
- pip install pipenv
script:
- pipenv lock
artifacts:
paths:
- Pipfile*
needs: []
rules:
- if: $CI_COMMIT_TAG
generate app sbom: generate app sbom:
stage: deploy stage: deploy
image: docker.io/node:18.12 image: docker.io/node:18.12
before_script: before_script:
- npm ci --ignore-scripts - npm ci --ignore-scripts
- npm run build
script: script:
- npx cdxgen - npx cdxgen
--type nodejs --type python
--required-only
--server-url https://deps.sub.uni-goettingen.de --server-url https://deps.sub.uni-goettingen.de
--api-key ${DEPS_UPLOAD_TOKEN} --api-key ${DEPS_UPLOAD_TOKEN}
--project-name ${project_name} --project-name ${project_name}
--project-version ${CI_COMMIT_TAG} --project-version ${CI_COMMIT_TAG}
needs: ["generate pipfile"]
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
...@@ -112,5 +124,6 @@ generate container sbom: ...@@ -112,5 +124,6 @@ generate container sbom:
--form "projectName=${project_name}-container" --form "projectName=${project_name}-container"
--form "projectVersion=${CI_COMMIT_TAG}" --form "projectVersion=${CI_COMMIT_TAG}"
--form "bom=@bom.json"' --form "bom=@bom.json"'
needs: ["build container image"]
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
## [1.2.1](https://gitlab.gwdg.de/dariah-de/textgridrep/repdav/compare/1.2.0...1.2.1) (2023-01-10)
### Bug Fixes
* reduce log level of some debug information ([c38b76b](https://gitlab.gwdg.de/dariah-de/textgridrep/repdav/commit/c38b76bc8199f72b1e1bcfb0bae014b605200849))
# [1.2.0](https://gitlab.gwdg.de/dariah-de/textgridrep/repdav/compare/1.1.3...1.2.0) (2023-01-09) # [1.2.0](https://gitlab.gwdg.de/dariah-de/textgridrep/repdav/compare/1.1.3...1.2.0) (2023-01-09)
......
...@@ -88,7 +88,7 @@ class TextgridNamedProject(TextgridProject): ...@@ -88,7 +88,7 @@ class TextgridNamedProject(TextgridProject):
"extent": response.result[0].object_value.generic.generated.extent, "extent": response.result[0].object_value.generic.generated.extent,
} }
} }
_logger.info("INFO: %s", info) _logger.debug("INFO: %s", info)
if "aggregation" in info[name]["format"]: if "aggregation" in info[name]["format"]:
return TextgridNamedAggregation( return TextgridNamedAggregation(
join_uri(self.path, name), self.environ, info, self._tgmeta join_uri(self.path, name), self.environ, info, self._tgmeta
...@@ -126,7 +126,7 @@ class TextgridNamedAggregation(TextgridAggregation): ...@@ -126,7 +126,7 @@ class TextgridNamedAggregation(TextgridAggregation):
"extent": response.result[0].object_value.generic.generated.extent, "extent": response.result[0].object_value.generic.generated.extent,
} }
} }
_logger.info("INFO: %s", info) _logger.debug("INFO: %s", info)
if "aggregation" in info[name]["format"]: if "aggregation" in info[name]["format"]:
return TextgridNamedAggregation( return TextgridNamedAggregation(
join_uri(self.path, name), self.environ, info, self._tgmeta join_uri(self.path, name), self.environ, info, self._tgmeta
......