Commit 75e93cce authored by Maximilian Dolling's avatar Maximilian Dolling
Browse files

added sqa to ci

parent f93e1e62
Pipeline #11978 passed with stages
in 1 minute and 7 seconds
......@@ -33,15 +33,18 @@ sqa:
image:
name: "gitext.gfz-potsdam.de:5000/software/services/fair/software-quality-assurance/software-quality-assurance:latest"
entrypoint: [""]
before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS_GITLAB" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- eval $(ssh-agent -s)
- echo "$GITLAB_DEPLOY_KEY" | tr -d '\r' | ssh-add -
- git config user.name "GitLab CI:${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}"
- git config user.email "software-quality-assurance"
- ln -s "$CI_PROJECT_DIR" "$SQA_REPO_DIR"
- sqa --list-authors
- sqa --list-used-languages
- sqa --list-used-licenses
- sqa --check-credentials
- sqa --reuse-lint
- sqa --generate-report
artifacts:
paths:
- meta/software-quality-assurance-report.md
expire_in: 30 days
- sqa --all
- git add .
- git commit -m "[AUTOMATIC] generated meta/software-quality-assurance-report.md by gitlab ci"
- git push -o ci.skip "git@${CI_SERVER_HOST}:${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.git" "HEAD:${CI_COMMIT_REF_NAME}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment