diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a160d9b..ad7285f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,51 +17,3 @@ include: - template: Security/SAST.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml - template: Security/SAST-IaC.gitlab-ci.yml - -qodana: - stage: 'code_quality' - only: - - master - - merge_requests - image: - name: jetbrains/qodana-python-community - entrypoint: - - '' - cache: - - key: qodana-2023.3-$CI_DEFAULT_BRANCH-$CI_COMMIT_REF_SLUG - fallback_keys: - - qodana-2023.3-$CI_DEFAULT_BRANCH- - - qodana-2023.3- - paths: - - ".qodana/cache" - variables: - QODANA_TOKEN: "$qodana_token" - script: - - qodana --save-report --results-dir=$CI_PROJECT_DIR/.qodana/results --cache-dir=$CI_PROJECT_DIR/.qodana/cache - artifacts: - expose_as: qodana_report - expire_in: 1 week - paths: - - ".qodana/results/" - - -push: - stage: 'deploy' - image: 'alpine' - needs: ['qodana'] - only: - - master - before_script: - - apk add openssh-client > /dev/null - - eval $(ssh-agent -s) - - chmod 400 $SSH_PRIVATE_KEY - - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - - cp $SSH_PRIVATE_KEY ~/.ssh/id_rsa - - - ssh-add ~/.ssh/id_rsa - script: - - ssh $BOT_HOST -oStrictHostKeyChecking=accept-new 'cd /opt/discord/tarkov && git pull && pip install -r requirements.txt' -