Update .gitlab-ci.yml file
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- 'test'
|
- 'test'
|
||||||
- 'code_quality'
|
- 'code_quality'
|
||||||
|
- 'build'
|
||||||
- 'deploy'
|
- 'deploy'
|
||||||
|
|
||||||
sast:
|
sast:
|
||||||
@@ -66,6 +67,24 @@ qodana:
|
|||||||
paths:
|
paths:
|
||||||
- ".qodana/results/"
|
- ".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:
|
push:
|
||||||
stage: 'deploy'
|
stage: 'deploy'
|
||||||
@@ -87,21 +106,4 @@ push:
|
|||||||
script:
|
script:
|
||||||
- ssh $BOT_HOST -oStrictHostKeyChecking=accept-new 'cd /opt/discord/tarkov && git pull'
|
- 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