diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 953d860..32ff0fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 .