Update .gitlab-ci.yml file

This commit is contained in:
Slava
2024-03-11 21:34:03 +00:00
parent 67de72769e
commit 5336c0e4bf

View File

@@ -6,8 +6,9 @@
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- test
- code_quality
- 'test'
- 'code_quality'
- 'pull'
sast:
stage: 'test'
@@ -17,6 +18,7 @@ include:
- template: Security/SAST-IaC.gitlab-ci.yml
qodana:
stage: 'code_quality'
only:
- master
- merge_requests
@@ -40,3 +42,24 @@ qodana:
expire_in: 1 week
paths:
- ".qodana/results/"
job:
stage: 'pull'
image: 'alpine'
only:
- master
variables:
SSH_PRIVATE_KEY: "$SSH_PRIVATE_KEY"
before_script:
- apk add openssh-client > /dev/null
- eval $(ssh-agent -s)
- chmod 400 "$SSH_ARIVATE_KEY"
- ssh-add "$SSH_ARIVATE_KEY"
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh $BOT_HOST -y
script:
- cd /opt/discord/tarkov
- git pull
- mkdir test