Update .gitlab-ci.yml file
This commit is contained in:
@@ -6,8 +6,9 @@
|
|||||||
# Note that environment variables can be set in several places
|
# Note that environment variables can be set in several places
|
||||||
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
||||||
stages:
|
stages:
|
||||||
- test
|
- 'test'
|
||||||
- code_quality
|
- 'code_quality'
|
||||||
|
- 'pull'
|
||||||
|
|
||||||
sast:
|
sast:
|
||||||
stage: 'test'
|
stage: 'test'
|
||||||
@@ -17,6 +18,7 @@ include:
|
|||||||
- template: Security/SAST-IaC.gitlab-ci.yml
|
- template: Security/SAST-IaC.gitlab-ci.yml
|
||||||
|
|
||||||
qodana:
|
qodana:
|
||||||
|
stage: 'code_quality'
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- merge_requests
|
- merge_requests
|
||||||
@@ -40,3 +42,24 @@ qodana:
|
|||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- ".qodana/results/"
|
- ".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
|
||||||
|
|||||||
Reference in New Issue
Block a user