docker
This commit is contained in:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user