Skip to content

Commit

Permalink
Merge pull request #208 from DSD-DBS/fix-dubious-ownership
Browse files Browse the repository at this point in the history
fix: Fix model validation
  • Loading branch information
MoritzWeber0 authored Sep 22, 2023
2 parents 569df4b + 5dd4db6 commit 36abc25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci-templates/gitlab/model-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ model-validation:
name: $DOCKER_REGISTRY/capella/base:${CAPELLA_DOCKER_IMAGES_TAG}
entrypoint: [""]
script:
# As our containers run with techuser (non-root) git commands fail with dubious ownership, see <https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29022> for the solution.
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- git fetch
- if [ ! -z $CI_COMMIT_BRANCH ]; then git reset --hard origin/$CI_COMMIT_BRANCH; fi
- BUILD_DIR=$(pwd)
Expand Down

0 comments on commit 36abc25

Please sign in to comment.