Update .gitlab-ci.yml file

This commit is contained in:
Slava
2024-03-20 19:24:02 +00:00
parent 99ded107f1
commit e867dd23c1

View File

@@ -8,6 +8,7 @@
stages:
- 'test'
- 'code_quality'
- 'build'
- 'deploy'
sast:
@@ -66,6 +67,24 @@ qodana:
paths:
- ".qodana/results/"
default:
image: docker:25.0.5
services:
- docker:25.0.5-dind
before_script:
- docker info
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
build:
stage: build
needs: [ 'pytest' ]
script:
- docker build -t disord-bot-pisya .
push:
stage: 'deploy'
@@ -87,21 +106,4 @@ push:
script:
- ssh $BOT_HOST -oStrictHostKeyChecking=accept-new 'cd /opt/discord/tarkov && git pull'
default:
image: docker:25.0.5
services:
- docker:25.0.5-dind
before_script:
- docker info
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
build:
stage: build
needs: [ 'pytest' ]
script:
- docker build -t disord-bot-pisya .