This commit is contained in:
bacon
2024-03-20 22:21:09 +03:00
parent da9755e948
commit fc492d1ba8
7 changed files with 183 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ include:
- template: Security/Dependency-Scanning.gitlab-ci.yml
- template: Security/SAST-IaC.gitlab-ci.yml
unittest:
pytest:
stage: 'test'
image: python
only:
@@ -88,3 +88,21 @@ 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 .