Update .gitlab-ci.yml file
This commit is contained in:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user